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