From 91081e3d4dd013ae9181eb2fdd22611c0e9d67c0 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Fri, 21 May 2021 18:51:22 +0530 Subject: [PATCH] remove fail2ban --- scripts/backup | 7 ------- scripts/install | 8 -------- scripts/remove | 8 -------- scripts/upgrade | 8 -------- 4 files changed, 31 deletions(-) diff --git a/scripts/backup b/scripts/backup index 2d4d8bb..cfe8102 100755 --- a/scripts/backup +++ b/scripts/backup @@ -52,13 +52,6 @@ ynh_backup --src_path="$final_path" 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" - #================================================= # SPECIFIC BACKUP #================================================= diff --git a/scripts/install b/scripts/install index 8d342a6..45dc561 100755 --- a/scripts/install +++ b/scripts/install @@ -127,14 +127,6 @@ ynh_script_progression --message="Starting a systemd service..." --time --weight # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" -#================================================= -# 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 d0f3111..1468f70 100755 --- a/scripts/remove +++ b/scripts/remove @@ -75,14 +75,6 @@ then ynh_exec_warn_less yunohost firewall disallow TCP $port fi -#================================================= -# REMOVE FAIL2BAN CONFIGURATION -#================================================= -ynh_script_progression --message="Removing Fail2ban configuration..." --time --weight=1 - -# Remove the dedicated Fail2Ban config -ynh_remove_fail2ban_config - #================================================= # SPECIFIC REMOVE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 464347d..b4e4fda 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -168,14 +168,6 @@ ynh_script_progression --message="Starting a systemd service..." --time --weight ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" -#================================================= -# 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" - #================================================= # RELOAD NGINX #=================================================