From 35bc199796e2e6aae8a42319b99292883d5084c0 Mon Sep 17 00:00:00 2001 From: Inrepublica Date: Thu, 26 Mar 2020 12:32:25 +0100 Subject: [PATCH] Remove Fail2Ban Remove Fail2Ban configuration --- scripts/backup | 8 -------- scripts/install | 8 -------- scripts/remove | 8 -------- scripts/restore | 9 --------- scripts/upgrade | 8 -------- 5 files changed, 41 deletions(-) diff --git a/scripts/backup b/scripts/backup index 58cfde0..e71ce89 100644 --- a/scripts/backup +++ b/scripts/backup @@ -54,14 +54,6 @@ ynh_script_progression --message="Backing up php-fpm configuration..." --time -- ynh_backup --src_path="/etc/php/7.0/fpm/pool.d/$app.conf" -#================================================= -# BACKUP FAIL2BAN CONFIGURATION -#================================================= -ynh_script_progression --message="Backing up fail2ban configuration..." --time --weight=1 - -ynh_backup --src_path="/etc/fail2ban/jail.d/$app.conf" -ynh_backup --src_path="/etc/fail2ban/filter.d/$app.conf" - #================================================= # END OF SCRIPT #================================================= diff --git a/scripts/install b/scripts/install index 2532fac..60bc7a2 100644 --- a/scripts/install +++ b/scripts/install @@ -167,14 +167,6 @@ ynh_store_file_checksum --file="$final_path/phpsysinfo.ini" # Set permissions to app files chown -R root: $final_path -#================================================= -# SETUP FAIL2BAN -#================================================= -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" - #================================================= # SETUP SSOWAT #================================================= diff --git a/scripts/remove b/scripts/remove index 7737ea8..47fdff5 100644 --- a/scripts/remove +++ b/scripts/remove @@ -45,14 +45,6 @@ ynh_script_progression --message="Removing php-fpm configuration..." --time --we # Remove the dedicated php-fpm config ynh_remove_fpm_config -#================================================= -# REMOVE FAIL2BAN CONFIGURATION -#================================================= -ynh_script_progression --message="Removing fail2ban configuration..." --time --weight=1 - -# Remove the dedicated fail2ban config -ynh_remove_fail2ban_config - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/restore b/scripts/restore index 286aa90..899b6b1 100644 --- a/scripts/restore +++ b/scripts/restore @@ -78,15 +78,6 @@ chown -R root: $final_path ynh_restore_file --origin_path="/etc/php/7.0/fpm/pool.d/$app.conf" -#================================================= -# RESTORE FAIL2BAN CONFIGURATION -#================================================= -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 - #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 1fdb0d6..ab909e3 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -148,14 +148,6 @@ fi #================================================= # GENERIC FINALIZATION -#================================================= -# UPGRADE FAIL2BAN -#================================================= -ynh_script_progression --message="Reconfiguring 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" - #================================================= # SECURE FILES AND DIRECTORIES #=================================================