From f8da516128d6be28aa384d09b90673add8b48f73 Mon Sep 17 00:00:00 2001 From: pascal-fischer <32096965+pascal-fischer@users.noreply.github.com> Date: Sun, 11 Jun 2023 22:22:03 +0200 Subject: [PATCH] Add app restart to brew installer (#944) * add app stop and service uninstall * add app stop and service uninstall * do not send error messages for positive case --- release_files/darwin-ui-installer.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/release_files/darwin-ui-installer.sh b/release_files/darwin-ui-installer.sh index c7fc55fd6..7e8115b64 100644 --- a/release_files/darwin-ui-installer.sh +++ b/release_files/darwin-ui-installer.sh @@ -31,10 +31,14 @@ fi if [ -n "$NB_BIN" ] then echo "Stopping NetBird daemon" - netbird service stop || true + osascript -e 'quit app "Netbird UI"' 2> /dev/null || true + netbird service stop 2> /dev/null || true fi # start netbird daemon service echo "Starting Netbird daemon" -netbird service install || true -netbird service start || true \ No newline at end of file +netbird service install 2> /dev/null || true +netbird service start || true + +# start app +open /Applications/Netbird\ UI.app \ No newline at end of file