From 8eed421259eaf77967d467d21827b8f73c44026a Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Sun, 26 Nov 2023 16:17:46 +0100 Subject: [PATCH] =?UTF-8?q?fix=20app=20name=20replacment=20=F0=9F=98=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- helpers/fail2ban | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/fail2ban b/helpers/fail2ban index 5e716c8f9..6c9fb22c7 100644 --- a/helpers/fail2ban +++ b/helpers/fail2ban @@ -106,7 +106,7 @@ ignoreregex = # the first sed deleteds possibles spaces and the second one extract the path logpath=$(grep logpath "$YNH_APP_BASEDIR/conf/f2b_jail.conf" | sed "s/ //g" | sed "s/logpath=//g") # replace the '__APP__' by the real app name in the path - logpath=$(sed "s/__APP__/$app/g") + logpath=${logpath//__APP__/$app} fi # Create the folder and logfile if they doesn't exist,