fail2ban fix when MULTISITE=yes

This commit is contained in:
bunkerity 2020-12-02 09:36:56 +01:00
parent e350a717ff
commit 2f23671c3b
No known key found for this signature in database
GPG Key ID: 654FFF51CEF7CC47
1 changed files with 1 additions and 2 deletions

View File

@ -517,8 +517,7 @@ fi
# fail2ban
if [ "$USE_FAIL2BAN" = "yes" ] ; then
echo "" > ${NGINX_PREFIX}fail2ban-ip.conf
replace_in_file "${NGINX_PREFIX}server.conf" "%USE_FAIL2BAN%" "include ${NGINX_PREFIX}fail2ban-ip.conf;"
replace_in_file "${NGINX_PREFIX}server.conf" "%USE_FAIL2BAN%" "include /etc/nginx/fail2ban-ip.conf;"
else
replace_in_file "${NGINX_PREFIX}server.conf" "%USE_FAIL2BAN%" ""
fi