From fb49d2ced909982a76553eb2fd5a2c4a104a12e0 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 24 Jan 2014 17:30:46 -0800 Subject: [PATCH] Small mac installer script fix. --- ext/installfiles/mac/install.tmpl.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ext/installfiles/mac/install.tmpl.sh b/ext/installfiles/mac/install.tmpl.sh index 3dfb79f50..c0484baa3 100644 --- a/ext/installfiles/mac/install.tmpl.sh +++ b/ext/installfiles/mac/install.tmpl.sh @@ -127,14 +127,9 @@ fi echo 'Installing and (re-)starting zerotier-one service via launchctl...' mv -f './Library/LaunchDaemons/com.zerotier.one.plist' '/Library/LaunchDaemons/' -if [ ! -z "`launchctl list | grep -F com.zerotier.one`" ]; then - launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist - sleep 1 -fi launchctl load /Library/LaunchDaemons/com.zerotier.one.plist -sleep 1 -/usr/bin/zerotier-cli info +# launchctl will restart us after exit if this is an online auto-update cd /tmp rm -rf _zt1tmp