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