mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
Mac .pkg building using Packages (third party app) instead of old bootstrapping .app and installer script.
This commit is contained in:
parent
f48509d50c
commit
89027d78ac
7 changed files with 1025 additions and 188 deletions
14
ext/installfiles/mac/preinst.sh
Executable file
14
ext/installfiles/mac/preinst.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
if [ -f /Library/LaunchDaemons/com.zerotier.one.plist ]; then
|
||||
launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist >>/dev/null 2>&1
|
||||
sleep 1
|
||||
killall zerotier-one
|
||||
sleep 1
|
||||
killall -9 zerotier-one
|
||||
fi
|
||||
|
||||
cd /Applications
|
||||
rm -rf "ZeroTier One.app"
|
Loading…
Add table
Add a link
Reference in a new issue