mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 00:23:58 +00:00
Use new OSX tap version, and update OSX install scripts.
This commit is contained in:
parent
38fe77ecf2
commit
e4d1aba3f8
Binary file not shown.
@ -15,7 +15,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>KEXT</string>
|
<string>KEXT</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>20150118</string>
|
<string>20131028</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
BIN
ext/bin/tap-mac/tap.kext.old/Contents/MacOS/tap
Executable file
BIN
ext/bin/tap-mac/tap.kext.old/Contents/MacOS/tap
Executable file
Binary file not shown.
@ -15,7 +15,7 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>KEXT</string>
|
<string>KEXT</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>20131028</string>
|
<string>20150118</string>
|
||||||
<key>CFBundleSignature</key>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
|
Binary file not shown.
@ -1,15 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
zthome="/Library/Application Support/ZeroTier/One"
|
zthome="/Library/Application Support/ZeroTier/One"
|
||||||
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:$zthome"
|
export PATH="$zthome:/bin:/usr/bin:/sbin:/usr/sbin"
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
# Launch ZeroTier One (not as daemon... launchd monitors it)
|
# Launch ZeroTier One (not as daemon... launchd monitors it)
|
||||||
exec zerotier-one
|
exec zerotier-one
|
||||||
|
@ -6,10 +6,12 @@ launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1
|
|||||||
|
|
||||||
cd "/Library/Application Support/ZeroTier/One"
|
cd "/Library/Application Support/ZeroTier/One"
|
||||||
rm -rf node.log node.log.old root-topology shutdownIfUnreadable autoupdate.log updates.d
|
rm -rf node.log node.log.old root-topology shutdownIfUnreadable autoupdate.log updates.d
|
||||||
|
chown -R 0 tap.kext
|
||||||
|
chgrp -R 0 tap.kext
|
||||||
if [ ! -f authtoken.secret ]; then
|
if [ ! -f authtoken.secret ]; then
|
||||||
head -c 4096 /dev/urandom | md5 | head -c 24 >authtoken.secret
|
head -c 4096 /dev/urandom | md5 | head -c 24 >authtoken.secret
|
||||||
chown root authtoken.secret
|
chown 0 authtoken.secret
|
||||||
chgrp wheel authtoken.secret
|
chgrp 0 authtoken.secret
|
||||||
chmod 0600 authtoken.secret
|
chmod 0600 authtoken.secret
|
||||||
fi
|
fi
|
||||||
rm -f zerotier-cli zerotier-idtool
|
rm -f zerotier-cli zerotier-idtool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user