From e0e1b9f91c2284c6abe55a839d6fabf00774ad97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Fri, 7 Jul 2023 10:24:49 +0200 Subject: [PATCH] Update install --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 #=================================================