mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 13:54:15 -07:00
Mac install fixes, remove obsolete stuff, and write local.conf via API for new UI integration.
This commit is contained in:
parent
11b352458e
commit
5005244d1b
6 changed files with 70 additions and 20 deletions
|
@ -25,16 +25,15 @@ for i in `ps axuwww | tr -s ' ' ',' | grep -F '/Applications/ZeroTier.app' | gre
|
|||
done
|
||||
chmod 0600 /tmp/zt1-gui-restart.tmp
|
||||
|
||||
if [ -f /Library/LaunchDaemons/com.zerotier.one.plist ]; then
|
||||
launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1
|
||||
sleep 5
|
||||
fi
|
||||
if [ -f '/Library/Application Support/ZeroTier/One/zerotier-one.pid' ]; then
|
||||
kill -9 `cat /Library/Application Support/ZeroTier/One/zerotier-one.pid`
|
||||
fi
|
||||
|
||||
cd "/Applications"
|
||||
rm -rf "ZeroTier One.app"
|
||||
rm -rf "ZeroTier.app"
|
||||
|
||||
if [ -d '/Library/Application Support/ZeroTier/One' ]; then
|
||||
cd '/Library/Application Support/ZeroTier/One'
|
||||
# ensure that file locking doesn't cause issues with replacing the binary
|
||||
rm -f zerotier-one
|
||||
rm -f MacEthernetTapAgent
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue