diff --git a/scripts/install b/scripts/install index 6ce8824..d291bc1 100644 --- a/scripts/install +++ b/scripts/install @@ -59,7 +59,7 @@ ynh_use_logrotate yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log" # Create a dedicated Fail2Ban config -ynh_add_fail2ban_config --logpath "/var/log/$app/gitea.log" --failregex ".*Failed authentication attempt for .* from " --max_retry 5 +#ynh_add_fail2ban_config --logpath "/var/log/$app/gitea.log" --failregex ".*Failed authentication attempt for .* from " --max_retry 5 #================================================= # ADD A CONFIGURATION diff --git a/scripts/remove b/scripts/remove index 71cd08e..4d969a2 100644 --- a/scripts/remove +++ b/scripts/remove @@ -33,7 +33,7 @@ ynh_remove_logrotate ynh_remove_nginx_config # Remove the dedicated Fail2Ban config -ynh_remove_fail2ban_config +#ynh_remove_fail2ban_config ynh_secure_remove --file="/var/log/$app" diff --git a/scripts/restore b/scripts/restore index 21af60a..e76f138 100644 --- a/scripts/restore +++ b/scripts/restore @@ -52,9 +52,9 @@ yunohost service add $app --description="Lightweight Git forge" --log="/var/log/ ynh_restore_file --origin_path="/etc/logrotate.d/$app" -ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf" -ynh_restore_file --origin_path="/etc/fail2ban/filter.d/$app.conf" -ynh_systemd_action --action=restart --service_name=fail2ban +#ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf" +#ynh_restore_file --origin_path="/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 86f1932..09f5e0e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -64,7 +64,7 @@ ynh_use_logrotate --non-append yunohost service add $app --description="Lightweight Git forge" --log="/var/log/$app/$app.log" # Create a dedicated Fail2Ban config -ynh_add_fail2ban_config --logpath "/var/log/$app/gitea.log" --failregex ".*Failed authentication attempt for .* from " --max_retry 5 +#ynh_add_fail2ban_config --logpath "/var/log/$app/gitea.log" --failregex ".*Failed authentication attempt for .* from " --max_retry 5 #================================================= # ADD A CONFIGURATION