mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-25 16:18:49 +01:00
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:
parent
c331cef242
commit
f8da516128
@ -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
|
Loading…
Reference in New Issue
Block a user