From 24f72965f47881da6352219ff2f4a4707b184784 Mon Sep 17 00:00:00 2001 From: Rafi59 Date: Sun, 11 Jun 2017 19:14:58 +0200 Subject: [PATCH] Add fail2ban rules in remove script --- scripts/remove | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 7bae392..6aa8d3d 100755 --- a/scripts/remove +++ b/scripts/remove @@ -29,9 +29,14 @@ domain=$(ynh_app_setting_get "$app" domain) sudo rm -f "/etc/php5/fpm/pool.d/${app}.conf" [[ -n $domain ]] && sudo rm -f "/etc/nginx/conf.d/${domain}.d/${app}.conf" +# Remove fail2ban rules +rm /etc/fail2ban/filter.d/nextcloud.conf +rm /etc/fail2ban/jail.d/nextcloud.local + # Reload services sudo service php5-fpm reload sudo service nginx reload +sudo fail2ban-client reload # Remove app dependencies ynh_package_autoremove "$DEPS_PKG_NAME" @@ -46,5 +51,6 @@ done id "$app" >/dev/null 2>&1 \ && sudo deluser --quiet --remove-home "$app" >/dev/null + # Remove logrotate configuration -ynh_remove_logrotate \ No newline at end of file +ynh_remove_logrotate