From 27d7b5b7853fd531ef2daa62e4495dc46d74ebf6 Mon Sep 17 00:00:00 2001 From: Michael <30936296+mtan93@users.noreply.github.com> Date: Tue, 20 Sep 2022 18:36:18 +0100 Subject: [PATCH] Update zerotier.sh --- zerotier.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zerotier.sh b/zerotier.sh index bc9d903..913a0e0 100755 --- a/zerotier.sh +++ b/zerotier.sh @@ -59,14 +59,15 @@ echo "Command: DeterminateManualStep: 1" >> $deplog echo "Status: Killing Processes" >> ${logfile} echo "Status: Killing Processes" >> ${deplog} -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}'); +appPID=$(ps aux | grep 'ZeroTier' | grep -v 'grep' | grep -v 'security' | awk '{print$2}') +authPID=$(ps aux | grep 'ZeroTier' | grep 'security' | grep -v 'grep' | awk '{print$2}'); IFS=$'\n' -for item in $app-pid +for item in $appPID do kill -9 $item + echo $item done -kill -9 $auth-pid +kill -9 $authPID #This sleep is functional and is needed to allow the processes to close properly before reopening the application sleep 5