From 85f7573262b996f1e50a40d04f39cf115208a328 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sun, 26 Feb 2023 22:32:10 +0100 Subject: [PATCH] gestion ps --- roles/deploy-web/files/blacklist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/deploy-web/files/blacklist.sh b/roles/deploy-web/files/blacklist.sh index 6104852..fe8be21 100755 --- a/roles/deploy-web/files/blacklist.sh +++ b/roles/deploy-web/files/blacklist.sh @@ -5,7 +5,7 @@ HOST=($(cat /etc/sentinel/virtualhost)) BLACKLIST=/etc/sentinel/blacklist currently_blacklist=$(ps -ef | grep blacklist | grep bash |grep ${USER} | wc -l) -if [ ${currently_blacklist} -eq 0 ]; then +if [ ${currently_blacklist} -eq 2 ]; then chain_count=$(iptables -L BLACKLIST -n | wc -l) if [ ${chain_count} -eq 0 ]; then