From 3193a45aaa9b63c6867858fd9cfc9be7c5c3150b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 5 Oct 2020 21:05:17 +0200 Subject: [PATCH] Comment Fail2Ban --- scripts/backup | 4 ++-- scripts/restore | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/backup b/scripts/backup index 22c3a5f..c9c4551 100644 --- a/scripts/backup +++ b/scripts/backup @@ -51,8 +51,8 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" # BACKUP FAIL2BAN CONFIGURATION #================================================= -ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf" -ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" +#ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf" +#ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" #================================================= # BACKUP LOGROTATE diff --git a/scripts/restore b/scripts/restore index 7e800cb..ac4715b 100644 --- a/scripts/restore +++ b/scripts/restore @@ -87,11 +87,11 @@ ynh_system_user_create --username=$app #================================================= # RESTORE FAIL2BAN CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the Fail2Ban configuration..." --weight=2 +# ynh_script_progression --message="Restoring the Fail2Ban configuration..." --weight=2 -ynh_restore_file "/etc/fail2ban/jail.d/$app.conf" -ynh_restore_file "/etc/fail2ban/filter.d/$app.conf" -ynh_systemd_action --action=restart --service_name=fail2ban +# ynh_restore_file "/etc/fail2ban/jail.d/$app.conf" +# ynh_restore_file "/etc/fail2ban/filter.d/$app.conf" +# ynh_systemd_action --action=restart --service_name=fail2ban #================================================= # SPECIFIC RESTORATION