Update zerotier2.sh

This commit is contained in:
Michael
2022-09-20 18:28:44 +01:00
committed by GitHub
parent be091b85fb
commit 6b2355eac1

View File

@@ -43,15 +43,15 @@ echo "Status: Running the installer" >> ${deplog}
installer -pkg /Library/Caches/com.purplecomputing.mdm/Apps/ZT.pkg -target / installer -pkg /Library/Caches/com.purplecomputing.mdm/Apps/ZT.pkg -target /
sleep 5 sleep 5
# # Kill off the ZeroTier.app and then ZeroTier auth copy processes # Kill off the ZeroTier.app and then ZeroTier auth copy processes
# echo "Status: Killing Processes" >> ${logfile} echo "Status: Killing Processes" >> ${logfile}
# echo "Status: Killing Processes" >> ${deplog} echo "Status: Killing Processes" >> ${deplog}
# app-pid=$(ps aux | grep 'ZeroTier' | grep -v 'grep' | grep -v 'security' | awk '{print$2}') app-pid=$(ps aux | grep 'ZeroTier' | grep -v 'grep' | grep -v 'security' | awk '{print$2}')
# auth-pid=$(ps aux | grep 'ZeroTier' | grep 'security' | grep -v 'grep' | awk '{print$2}'); auth-pid=$(ps aux | grep 'ZeroTier' | grep 'security' | grep -v 'grep' | awk '{print$2}');
# kill -9 $app-pid kill -9 $app-pid
# kill -9 $auth-pid kill -9 $auth-pid
# #This sleep is functional and is needed to allow the processes to close properly before reopening the application #This sleep is functional and is needed to allow the processes to close properly before reopening the application
# sleep 5 sleep 5
# # Now start the ZeroTier.app again as user and we then only enter the admin credentials once # # Now start the ZeroTier.app again as user and we then only enter the admin credentials once
# echo "Status: Re-opening ZeroTier" >> ${logfile} # echo "Status: Re-opening ZeroTier" >> ${logfile}