From 32d6a496c8f0da9245abe91cea828f19b0ce7fae Mon Sep 17 00:00:00 2001 From: Alex Budurovici Date: Sun, 23 Jun 2019 12:40:35 +0200 Subject: [PATCH] Cleanup fail2ban comments --- scripts/backup | 8 -------- scripts/install | 9 --------- scripts/remove | 8 -------- scripts/restore | 9 --------- scripts/upgrade | 10 ---------- 5 files changed, 44 deletions(-) diff --git a/scripts/backup b/scripts/backup index 7ad24d2..4b08dcd 100755 --- a/scripts/backup +++ b/scripts/backup @@ -60,14 +60,6 @@ ynh_script_progression --message="Backing up the MySQL database..." --time --wei ynh_mysql_dump_db --database="$db_name" > db.sql -#================================================= -# 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" - #================================================= # SPECIFIC BACKUP #================================================= diff --git a/scripts/install b/scripts/install index 5d3b91a..67bb35a 100755 --- a/scripts/install +++ b/scripts/install @@ -206,15 +206,6 @@ yunohost service add $app --log "/var/log/$app/$app.log" # if using yunohost version 3.2 or more in the 'manifest.json', a description can be added #yunohost service add $app --description "$app daemon for XXX" --log "/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="^.*authentication failure. while reading response header from upstream, client: ,.*POST $path_url.*$" --max_retry=5 - - #================================================= # RELOAD NGINX #================================================= diff --git a/scripts/remove b/scripts/remove index 2df1b93..18b5612 100755 --- a/scripts/remove +++ b/scripts/remove @@ -84,14 +84,6 @@ ynh_script_progression --message="Removing logrotate configuration..." --time -- # Remove the app-specific logrotate config ynh_remove_logrotate -#================================================= -# 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 7d49034..d330801 100755 --- a/scripts/restore +++ b/scripts/restore @@ -82,15 +82,6 @@ chown -R $app: $final_path ynh_restore_file --origin_path="/etc/php/7.2/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 - #================================================= # SPECIFIC RESTORATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9af9722..fcb09da 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -152,16 +152,6 @@ ynh_script_progression --message="Upgrading logrotate configuration..." --time - # Use logrotate to manage app-specific logfile(s) ynh_use_logrotate --non-append -#================================================= -# 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="^.*authentication failure. while reading response header from upstream, client: ,.*POST $path_url.*$" --max_retry=5 - #================================================= # SPECIFIC UPGRADE #=================================================