From 32c04b1a4e7261953bb5004e12b382fcb8e740d6 Mon Sep 17 00:00:00 2001 From: lapineige Date: Wed, 24 Apr 2019 10:56:21 +0200 Subject: [PATCH] Restore fail2ban config --- scripts/restore | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #=================================================