fix app name replacment 😞

This commit is contained in:
OniriCorpe 2023-11-26 16:17:46 +01:00
parent ba5319f2ba
commit 8eed421259

View file

@ -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,