Minor Fix

This commit is contained in:
earnolmartin 2021-02-26 15:28:17 -07:00
parent 5e44094472
commit 680df73a6a
2 changed files with 6 additions and 2 deletions

View file

@ -3070,7 +3070,9 @@ function installBadBotsBlockerNginx(){
git clone https://github.com/own3mall/nginx-badbot-blocker.git
if [ -e "/etc/nginx/nginx-badbot-blocker/blacklist.conf" ]; then
getServerIPAddr
sed -i "s#111.111.111.111#${MYIP}#g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf"
if [ ! -z "$MYIP" ]; then
sed -i "s#111.111.111.111#${MYIP}#g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf"
fi
fi
fi
fi

View file

@ -2716,7 +2716,9 @@ function installBadBotsBlockerNginx(){
git clone https://github.com/own3mall/nginx-badbot-blocker.git
if [ -e "/etc/nginx/nginx-badbot-blocker/blacklist.conf" ]; then
getServerIPAddr
sed -i "s#111.111.111.111#${MYIP}#g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf"
if [ ! -z "$MYIP" ]; then
sed -i "s#111.111.111.111#${MYIP}#g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf"
fi
fi
fi
fi