diff --git a/scripts/restore b/scripts/restore index 3e82943..c682a43 100644 --- a/scripts/restore +++ b/scripts/restore @@ -76,6 +76,14 @@ ynh_system_user_create $app # Recreate the dedicated user, if not existing chown -R $app: $final_path +#================================================= +# RESTORE FAIL2BAN CONFIGURATION +#================================================= +ynh_restore_file "/etc/fail2ban/jail.d/$app.conf" +ynh_restore_file "/etc/fail2ban/filter.d/$app.conf" + +systemctl reload fail2ban # Reload instead of restart for better performance + #================================================= # RESTORE PHP-FPM CONFIGURATION #=================================================