mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-28 19:13:31 +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" ]
|
if [ -n "$NB_BIN" ]
|
||||||
then
|
then
|
||||||
echo "Stopping NetBird daemon"
|
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
|
fi
|
||||||
|
|
||||||
# start netbird daemon service
|
# start netbird daemon service
|
||||||
echo "Starting Netbird daemon"
|
echo "Starting Netbird daemon"
|
||||||
netbird service install || true
|
netbird service install 2> /dev/null || true
|
||||||
netbird service start || true
|
netbird service start || true
|
||||||
|
|
||||||
|
# start app
|
||||||
|
open /Applications/Netbird\ UI.app
|
Loading…
Reference in New Issue
Block a user