mirror of https://github.com/fail2ban/fail2ban
ENH: disable shell check for $DAEMON_ARGS expansion
parent
dfd2a2063d
commit
62f957973d
|
@ -123,6 +123,8 @@ do_start()
|
||||||
find /proc/net/xt_recent -name "fail2ban-*" -exec chown "$FAIL2BAN_USER" "{}" ";"
|
find /proc/net/xt_recent -name "fail2ban-*" -exec chown "$FAIL2BAN_USER" "{}" ";"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# $DAEMON_ARGS need to be expanded possibly with multiple or no options
|
||||||
|
# shellcheck disable=SC2086
|
||||||
start-stop-daemon --start --quiet --chuid "$FAIL2BAN_USER" --exec "$DAEMON" -- \
|
start-stop-daemon --start --quiet --chuid "$FAIL2BAN_USER" --exec "$DAEMON" -- \
|
||||||
$DAEMON_ARGS start >/dev/null \
|
$DAEMON_ARGS start >/dev/null \
|
||||||
|| return 2
|
|| return 2
|
||||||
|
|
Loading…
Reference in New Issue