From ac629150ac6dca2951df77a35e8fd6fb0298f8c7 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sun, 17 May 2015 21:26:38 -0700 Subject: Create symlinks in Mac postinst script. --- ext/installfiles/mac/postinst.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ext/installfiles/mac/postinst.sh') diff --git a/ext/installfiles/mac/postinst.sh b/ext/installfiles/mac/postinst.sh index d41b733a..094eea48 100755 --- a/ext/installfiles/mac/postinst.sh +++ b/ext/installfiles/mac/postinst.sh @@ -16,6 +16,14 @@ if [ ! -f authtoken.secret ]; then chgrp wheel authtoken.secret chmod 0600 authtoken.secret fi +rm -f zerotier-cli zerotier-idtool +ln -sf zerotier-one zerotier-cli +ln -sf zerotier-one zerotier-idtool + +cd /usr/bin +rm -f zerotier-cli zerotier-idtool +ln -sf "/Library/Application Support/ZeroTier/One/zerotier-one" zerotier-cli +ln -sf "/Library/Application Support/ZeroTier/One/zerotier-one" zerotier-idtool launchctl load /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1 -- cgit v1.2.3