From 2b187b10a052467f0d447b8445e63d2f85c3fb5d Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Wed, 1 Nov 2023 04:48:47 +0100 Subject: [PATCH] fix install: "Have not found any log file for freshrss jail" --- scripts/install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install b/scripts/install index 298211f..a9d952b 100755 --- a/scripts/install +++ b/scripts/install @@ -54,6 +54,9 @@ ynh_use_logrotate #================================================= ynh_script_progression --message="Upgrading fail2ban configuration..." +# 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/${domain}-access.log" --failregex=" .* \"GET /api/.*\" 401" --max_retry=5