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

View file

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