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