mirror of
https://github.com/YunoHost-Apps/gotosocial_ynh.git
synced 2024-09-03 19:16:06 +02:00
Create the logfile, required before configuring fail2ban
This commit is contained in:
parent
736d548f1a
commit
84e8921a18
1 changed files with 3 additions and 0 deletions
|
@ -289,6 +289,9 @@ 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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue