summaryrefslogtreecommitdiff
path: root/ext/installfiles/mac/postinst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ext/installfiles/mac/postinst.sh')
-rwxr-xr-xext/installfiles/mac/postinst.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/installfiles/mac/postinst.sh b/ext/installfiles/mac/postinst.sh
index 2e4f5916..4f5a50c2 100755
--- a/ext/installfiles/mac/postinst.sh
+++ b/ext/installfiles/mac/postinst.sh
@@ -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