mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 12:33:44 +02:00
Create symlinks in Mac postinst script.
This commit is contained in:
parent
89027d78ac
commit
ac629150ac
1 changed files with 8 additions and 0 deletions
|
@ -16,6 +16,14 @@ if [ ! -f authtoken.secret ]; then
|
||||||
chgrp wheel authtoken.secret
|
chgrp wheel authtoken.secret
|
||||||
chmod 0600 authtoken.secret
|
chmod 0600 authtoken.secret
|
||||||
fi
|
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
|
launchctl load /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue