Minor Fix
This commit is contained in:
parent
5e44094472
commit
680df73a6a
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue