mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 04:53:44 +02:00
Properly launch the app on post-install restart.
This commit is contained in:
parent
594853e251
commit
81f2c57656
1 changed files with 2 additions and 2 deletions
|
@ -40,9 +40,9 @@ ln -sf "/Library/Application Support/ZeroTier/One/zerotier-one" zerotier-idtool
|
||||||
if [ -f /tmp/zt1-gui-restart.tmp ]; then
|
if [ -f /tmp/zt1-gui-restart.tmp ]; then
|
||||||
for u in `cat /tmp/zt1-gui-restart.tmp`; do
|
for u in `cat /tmp/zt1-gui-restart.tmp`; do
|
||||||
if [ -f '/Applications/ZeroTier One.app/Contents/MacOS/ZeroTier One' ]; then
|
if [ -f '/Applications/ZeroTier One.app/Contents/MacOS/ZeroTier One' ]; then
|
||||||
su $u -c '/Applications/ZeroTier\ One.app/Contents/MacOS/ZeroTier\ One &' >>/dev/null 2>&1 &
|
su $u -c '/usr/bin/open /Applications/ZeroTier\ One.app &' >>/dev/null 2>&1 &
|
||||||
else
|
else
|
||||||
su $u -c '/Applications/ZeroTier.app/Contents/MacOS/ZeroTier &' >>/dev/null 2>&1 &
|
su $u -c '/usr/bin/open /Applications/ZeroTier.app &' >>/dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue