ENH: disable shell check for $DAEMON_ARGS expansion

pull/2348/head
Yaroslav Halchenko 2019-02-15 15:00:30 -05:00 committed by Viktor Szépe
parent dfd2a2063d
commit 62f957973d
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,8 @@ do_start()
find /proc/net/xt_recent -name "fail2ban-*" -exec chown "$FAIL2BAN_USER" "{}" ";"
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" -- \
$DAEMON_ARGS start >/dev/null \
|| return 2