1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

sigh I'm dumdum... / fix touch path while installing fail2ban

This commit is contained in:
OniriCorpe 2023-11-01 04:54:33 +01:00
parent 2b187b10a0
commit ced530d14f

View file

@ -55,7 +55,7 @@ ynh_use_logrotate
ynh_script_progression --message="Upgrading fail2ban configuration..."
# Create the logfile, required before configuring fail2ban
touch "/var/log/${app}/${app}.log"
touch "/var/log/${domain}-access.log"
# Create a dedicated Fail2Ban config
ynh_add_fail2ban_config --logpath="/var/log/${domain}-access.log" --failregex="<HOST> .* \"GET /api/.*\" 401" --max_retry=5