From 8afd96663a9c809d4337a6022d5ce64de1e218a9 Mon Sep 17 00:00:00 2001 From: Hadrien Date: Mon, 1 Nov 2021 22:46:47 +0300 Subject: [PATCH] disable fail2ban --- scripts/backup | 4 ++-- scripts/install | 6 +++--- scripts/remove | 6 +++--- scripts/restore | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/backup b/scripts/backup index f99225d..20685be 100755 --- a/scripts/backup +++ b/scripts/backup @@ -72,8 +72,8 @@ ynh_backup --src_path="/etc/php/$phpversion/fpm/pool.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" #================================================= # SPECIFIC BACKUP diff --git a/scripts/install b/scripts/install index e4d8019..44b8bac 100755 --- a/scripts/install +++ b/scripts/install @@ -368,10 +368,10 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap #================================================= # SETUP FAIL2BAN #================================================= -ynh_script_progression --message="Configuring Fail2Ban..." --time --weight=1 +# ynh_script_progression --message="Configuring Fail2Ban..." --time --weight=1 -# Create a dedicated Fail2Ban config -ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login" +# # Create a dedicated Fail2Ban config +# ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="Regex to match into the log for a failed login" #================================================= # SETUP SSOWAT diff --git a/scripts/remove b/scripts/remove index ed6365b..6ef4457 100755 --- a/scripts/remove +++ b/scripts/remove @@ -116,10 +116,10 @@ fi #================================================= # REMOVE FAIL2BAN CONFIGURATION #================================================= -ynh_script_progression --message="Removing Fail2ban configuration..." --time --weight=1 +# ynh_script_progression --message="Removing Fail2ban configuration..." --time --weight=1 -# Remove the dedicated Fail2Ban config -ynh_remove_fail2ban_config +# # Remove the dedicated Fail2Ban config +# ynh_remove_fail2ban_config #================================================= # SPECIFIC REMOVE diff --git a/scripts/restore b/scripts/restore index c4b44f6..cd0e5e0 100755 --- a/scripts/restore +++ b/scripts/restore @@ -107,11 +107,11 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf" #================================================= # RESTORE FAIL2BAN CONFIGURATION #================================================= -ynh_script_progression --message="Restoring the Fail2Ban configuration..." --time --weight=1 +# ynh_script_progression --message="Restoring the Fail2Ban configuration..." --time --weight=1 -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