diff --git a/Update-WordPressFail2banFilters.sh b/Update-WordPressFail2banFilters.sh new file mode 100644 index 0000000..a1f5405 --- /dev/null +++ b/Update-WordPressFail2banFilters.sh @@ -0,0 +1,5 @@ +WEBROOT=/var/www/html +if [ -d "${WEBROOT}/wp-content/plugins/wp-fail2ban/filters.d" ]; then + echo "Updating fail2ban filters" + cp -a "${WEBROOT}/wp-content/plugins/wp-fail2ban/filters.d/. /etc/fail2ban/filter.d/ && /usr/bin/fail2ban-client reload +fi \ No newline at end of file