From 775f2f91d7ac0c6660c9efdbd73be13d134e39cd Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Mon, 14 Mar 2022 02:46:28 +0100 Subject: [PATCH] remove fail2ban --- scripts/backup | 7 ------- scripts/remove | 8 -------- scripts/restore | 9 --------- scripts/upgrade | 8 -------- 4 files changed, 32 deletions(-) diff --git a/scripts/backup b/scripts/backup index 3f88850..c796898 100755 --- a/scripts/backup +++ b/scripts/backup @@ -62,13 +62,6 @@ ynh_backup --src_path="$datadir" --is_big 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/remove b/scripts/remove index 3e619f6..2c1c9e5 100755 --- a/scripts/remove +++ b/scripts/remove @@ -93,14 +93,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/restore b/scripts/restore index f1c363e..0cac2fb 100755 --- a/scripts/restore +++ b/scripts/restore @@ -99,15 +99,6 @@ chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" -#================================================= -# 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 - #================================================= # SPECIFIC RESTORATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 67cfa63..de37872 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -230,14 +230,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 #=================================================