From a0e133bd92f274e4bcc6e957eb11f146c3d75b3f Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Tue, 6 Jun 2023 13:02:32 +0200 Subject: [PATCH] stop the daemon on brew update/install if running --- release_files/darwin-ui-installer.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/release_files/darwin-ui-installer.sh b/release_files/darwin-ui-installer.sh index 8bc194f80..df95e7c57 100644 --- a/release_files/darwin-ui-installer.sh +++ b/release_files/darwin-ui-installer.sh @@ -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