2015-05-18 04:24:02 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
|
|
|
|
|
|
|
if [ -f /Library/LaunchDaemons/com.zerotier.one.plist ]; then
|
|
|
|
launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1
|
|
|
|
fi
|
|
|
|
|
2015-05-21 02:38:49 +00:00
|
|
|
sleep 1
|
|
|
|
|
|
|
|
if [ -d "/Library/Application Support/ZeroTier/One" ]; then
|
|
|
|
cd "/Library/Application Support/ZeroTier/One"
|
|
|
|
if [ -f "zerotier-one.pid" ]; then
|
|
|
|
ztpid=`cat zerotier-one.pid`
|
|
|
|
if [ "$ztpid" -gt "0" ]; then
|
|
|
|
kill `cat zerotier-one.pid`
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
sleep 1
|
|
|
|
|
|
|
|
cd "/Applications"
|
2015-05-18 04:24:02 +00:00
|
|
|
rm -rf "ZeroTier One.app"
|
2015-05-21 02:38:49 +00:00
|
|
|
|
|
|
|
exit 0
|