From 94c61b071ae54eb2caad19d99512e0caa31b2dce Mon Sep 17 00:00:00 2001 From: Tom Warnke Date: Mon, 27 Nov 2023 21:02:04 +0100 Subject: [PATCH] fix log file path --- scripts/install | 2 +- scripts/upgrade | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install b/scripts/install index b3ce978..ef05d65 100644 --- a/scripts/install +++ b/scripts/install @@ -68,7 +68,7 @@ ynh_script_progression --message="Configuring fail2ban..." --weight=1 touch "/var/log/${domain}-error.log" # Create a dedicated fail2ban config -ynh_add_fail2ban_config --logpath="/var/log/${domain}-error.log" --failregex='"PHP message: LDAP Authentication failure" while reading response header from upstream, client: ' +ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex='"PHP message: LDAP Authentication failure" while reading response header from upstream, client: ' #================================================= # SPECIFIC SETUP diff --git a/scripts/upgrade b/scripts/upgrade index c6f9f52..faad769 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,7 +51,7 @@ ynh_script_progression --message="Upgrading fail2ban configuration..." --weight= touch "/var/log/${domain}-error.log" # Create a dedicated fail2ban config -ynh_add_fail2ban_config --logpath="/var/log/${domain}-error.log" --failregex='"PHP message: LDAP Authentication failure" while reading response header from upstream, client: ' +ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex='"PHP message: LDAP Authentication failure" while reading response header from upstream, client: ' #================================================= # SPECIFIC UPGRADE