mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
GitHub issue #494 -- shut down and restart UI on Mac pkg install/upgrade.
This commit is contained in:
parent
39db45e144
commit
6bb855873d
2 changed files with 22 additions and 0 deletions
|
@ -43,4 +43,13 @@ ln -sf "/Library/Application Support/ZeroTier/One/zerotier-one" zerotier-idtool
|
|||
|
||||
launchctl load /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1
|
||||
|
||||
sleep 1
|
||||
|
||||
if [ -f /tmp/zt1-gui-restart.tmp ];
|
||||
for u in `cat /tmp/zt1-gui-restart.tmp`; do
|
||||
su $u -c '/Applications/ZeroTier\ One.app/Contents/MacOS/ZeroTier\ One &' >>/dev/null 2>&1 &
|
||||
done
|
||||
fi
|
||||
rm -f /tmp/zt1-gui-restart.tmp
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue