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
This commit is contained in:
pascal-fischer 2023-06-11 22:22:03 +02:00 committed by GitHub
parent c331cef242
commit f8da516128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
netbird service install 2> /dev/null || true
netbird service start || true
# start app
open /Applications/Netbird\ UI.app