1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/gotosocial_ynh.git synced 2024-09-03 19:16:06 +02:00

Merge pull request #114 from YunoHost-Apps/remove-fail2ban-unnecessary-things

removing unnecessary touch for fail2ban setup
This commit is contained in:
OniriCorpe 2023-12-01 20:53:12 +01:00 committed by GitHub
commit 5a8a47620d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View file

@ -22,7 +22,7 @@
"email": ""
},
"requirements": {
"yunohost": ">= 11.0.6"
"yunohost": ">= 11.2.6"
},
"multi_instance": true,
"services": [

View file

@ -307,9 +307,6 @@ ynh_use_logrotate
#=================================================
ynh_script_progression --message="Configuring fail2ban..." --weight=1
# Create the logfile, required before configuring fail2ban
touch "/var/log/${app}/${app}.log"
# Create a dedicated Fail2Ban config
ynh_add_fail2ban_config --logpath="/var/log/${app}/${app}.log" --failregex="statusCode=401 path=/auth/sign_in clientIP=<HOST> .* msg=\"Unauthorized:" --max_retry=5