fix comment

This commit is contained in:
OniriCorpe 2023-11-26 20:47:03 +01:00
parent 38415db273
commit 27c933ee6d

View file

@ -101,7 +101,7 @@ ignoreregex =
ynh_add_config --template="f2b_filter.conf" --destination="/etc/fail2ban/filter.d/$app.conf" ynh_add_config --template="f2b_filter.conf" --destination="/etc/fail2ban/filter.d/$app.conf"
# if "$logpath" doesn't exist (as if using --use_template argument), assign # if "$logpath" doesn't exist (as if using --use_template argument), assign
# "$logpath" using the one in the package's conf/f2b_jail.conf template # "$logpath" using the one in the previously generated fail2ban conf file
if [ -z "$logpath" ]; then if [ -z "$logpath" ]; then
# the first sed deletes possibles spaces and the second one extract the path # the first sed deletes possibles spaces and the second one extract the path
logpath=$(grep logpath "/etc/fail2ban/jail.d/$app.conf" | sed "s/ //g" | sed "s/logpath=//g") logpath=$(grep logpath "/etc/fail2ban/jail.d/$app.conf" | sed "s/ //g" | sed "s/logpath=//g")