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