fix: install.sh: avoid call of netbird executable after rpm installation (#2589)

This commit is contained in:
Gianluca Boiano 2024-09-12 17:32:47 +02:00 committed by GitHub
parent 170e842422
commit 33c9b2d989
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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