diff --git a/scripts/install b/scripts/install index 289b945..7d62f85 100644 --- a/scripts/install +++ b/scripts/install @@ -58,9 +58,6 @@ 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 - #================================================= # ADD A CONFIGURATION #================================================= @@ -81,6 +78,9 @@ ynh_script_progression --message="Starting a systemd service..." --weight=3 # Start a systemd service ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Starting new Web server: tcp:127.0.0.1:" +# Create a dedicated Fail2Ban config +ynh_add_fail2ban_config --logpath "/var/log/$app/gitea.log" --failregex ".*Failed authentication attempt for .* from " --max_retry 5 + #================================================= # LDAP CONFIGURATION #=================================================