diff --git a/ehcp/ehcpforceupdate.sh b/ehcp/ehcpforceupdate.sh index 0da0bda..6c39b1d 100755 --- a/ehcp/ehcpforceupdate.sh +++ b/ehcp/ehcpforceupdate.sh @@ -2914,7 +2914,7 @@ function installBadBotsBlockerNginx(){ git clone https://github.com/mariusv/nginx-badbot-blocker.git if [ -e "/etc/nginx/nginx-badbot-blocker/blacklist.conf" ]; then getServerIPAddr - sed -i "s#\|python-requests##g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf" + sed -i "s#|python-requests##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 diff --git a/ehcp/install_main.sh b/ehcp/install_main.sh index 8b45c72..8b8b40d 100755 --- a/ehcp/install_main.sh +++ b/ehcp/install_main.sh @@ -2630,7 +2630,7 @@ function installBadBotsBlockerNginx(){ git clone https://github.com/mariusv/nginx-badbot-blocker.git if [ -e "/etc/nginx/nginx-badbot-blocker/blacklist.conf" ]; then getServerIPAddr - sed -i "s#\|python-requests##g" "/etc/nginx/nginx-badbot-blocker/blacklist.conf" + sed -i "s#|python-requests##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