configure #2

Merged
v4l3n71n merged 23 commits from configure into master 2023-02-27 21:53:18 +00:00
Showing only changes of commit 85f7573262 - Show all commits

View File

@ -5,7 +5,7 @@ HOST=($(cat /etc/sentinel/virtualhost))
BLACKLIST=/etc/sentinel/blacklist BLACKLIST=/etc/sentinel/blacklist
currently_blacklist=$(ps -ef | grep blacklist | grep bash |grep ${USER} | wc -l) 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) chain_count=$(iptables -L BLACKLIST -n | wc -l)
if [ ${chain_count} -eq 0 ]; then if [ ${chain_count} -eq 0 ]; then