mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 18:48:36 -07:00
Mac install fixes, more internal use scripts.
This commit is contained in:
parent
60731e6d02
commit
3482d836ae
11 changed files with 38 additions and 43 deletions
|
@ -23,7 +23,7 @@ if [ $dryRun -gt 0 ]; then
|
|||
fi
|
||||
|
||||
zthome="/Library/Application Support/ZeroTier/One"
|
||||
ztapp=`mdfind kMDItemCFBundleIdentifier == 'com.zerotier.ZeroTierOne'`
|
||||
ztapp=`mdfind kMDItemCFBundleIdentifier == 'com.zerotier.ZeroTierOne' | sort | head -n 1`
|
||||
if [ ! -d "$ztapp" ]; then
|
||||
ztapp="/Applications/ZeroTier One.app"
|
||||
fi
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
zthome="/Library/Application Support/ZeroTier/One"
|
||||
export PATH="/bin:/usr/bin:/sbin:/usr/sbin:$zthome"
|
||||
ztapp=`mdfind kMDItemCFBundleIdentifier == 'com.zerotier.ZeroTierOne'`
|
||||
ztapp=`mdfind kMDItemCFBundleIdentifier == 'com.zerotier.ZeroTierOne' | sort | head -n 1`
|
||||
|
||||
# Clean all other stuff off the system if the user has trashed the .app
|
||||
if [ -z "$ztapp" -o ! -d "$ztapp" ]; then
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
export PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
zthome="/Library/Application Support/ZeroTier/One"
|
||||
ztapp=`mdfind kMDItemCFBundleIdentifier == 'com.zerotier.ZeroTierOne'`
|
||||
ztapp=`mdfind kMDItemCFBundleIdentifier == 'com.zerotier.ZeroTierOne' | sort | head -n 1`
|
||||
|
||||
if [ "$UID" -ne 0 ]; then
|
||||
echo "Must be run as root; try: sudo $0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue