stop the daemon on brew update/install if running

This commit is contained in:
Pascal Fischer 2023-06-06 13:02:32 +02:00
parent bbf536be85
commit a0e133bd92

View File

@ -27,6 +27,14 @@ then
echo "Please run: brew install netbirdio/tap/netbird"
echo "to update it"
fi
if [ -n "$NB_BIN" ]
then
echo "Stopping and uninstalling NetBird daemon"
netbird service stop || true
netbird service uninstall || true
fi
# start netbird daemon service
echo "Starting Netbird daemon"
netbird service install || true