Files
management-scripts/Update-WordPressFail2banFilters.sh
2023-04-26 12:22:13 -04:00

5 lines
251 B
Bash

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