Skip to content

Commit

Permalink
Update helpers/fail2ban
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin authored Nov 27, 2023
1 parent 27c933e commit 15798b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/fail2ban
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ ignoreregex =

# if "$logpath" doesn't exist (as if using --use_template argument), assign
# "$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
logpath=$(grep logpath "/etc/fail2ban/jail.d/$app.conf" | sed "s/ //g" | sed "s/logpath=//g")
fi
Expand Down

0 comments on commit 15798b4

Please sign in to comment.