From c2ebb5cfeb122f8ae3b83cc905fe0e42c86a006a Mon Sep 17 00:00:00 2001 From: David Yoder Date: Wed, 26 Apr 2023 12:22:13 -0400 Subject: [PATCH] initial commit --- Update-WordPressFail2banFilters.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Update-WordPressFail2banFilters.sh 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