mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Update helpers/fail2ban
This commit is contained in:
parent
27c933ee6d
commit
15798b4937
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ ignoreregex =
|
||||||
|
|
||||||
# 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 previously generated fail2ban conf file
|
# "$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")
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue