Skip to content

Commit

Permalink
fix: install.sh: avoid call of netbird executable after rpm installat…
Browse files Browse the repository at this point in the history
…ion (#2589)
  • Loading branch information
M0Rf30 authored Sep 12, 2024
1 parent 170e842 commit 33c9b2d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions release_files/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,11 +300,13 @@ install_netbird() {
echo "package_manager=$PACKAGE_MANAGER" | ${SUDO} tee "$CONFIG_FILE" > /dev/null

# Load and start netbird service
if ! ${SUDO} netbird service install 2>&1; then
echo "NetBird service has already been loaded"
fi
if ! ${SUDO} netbird service start 2>&1; then
echo "NetBird service has already been started"
if [ "$PACKAGE_MANAGER" != "rpm-ostree" ]; then
if ! ${SUDO} netbird service install 2>&1; then
echo "NetBird service has already been loaded"
fi
if ! ${SUDO} netbird service start 2>&1; then
echo "NetBird service has already been started"
fi
fi


Expand Down

0 comments on commit 33c9b2d

Please sign in to comment.