Use new OSX tap version, and update OSX install scripts.

This commit is contained in:
Adam Ierymenko 2015-11-16 16:19:24 -08:00
parent 38fe77ecf2
commit e4d1aba3f8
11 changed files with 7 additions and 13 deletions

View file

@ -1,15 +1,7 @@
#!/bin/bash
zthome="/Library/Application Support/ZeroTier/One"
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:$zthome"
# If the app has been deleted, uninstall the service
cd "$zthome"
if [ -L './shutdownIfUnreadable' -a ! -f "`readlink ./shutdownIfUnreadable`" ]; then
rm -f /tmp/ZeroTierOneUninstall.log
/bin/bash "$zthome/uninstall.sh" >/tmp/ZeroTierOneUninstall.log 2>&1
exit 0
fi
export PATH="$zthome:/bin:/usr/bin:/sbin:/usr/sbin"
# Launch ZeroTier One (not as daemon... launchd monitors it)
exec zerotier-one