From 18ba5c731189aa18a634458b12ab6c353201437f Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 2 Jan 2018 11:52:35 -0800 Subject: [PATCH] Don't verify 'conntrack' utility for 'remote-' commands Signed-off-by: Tom Eastep --- Shorewall/lib.cli-std | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Shorewall/lib.cli-std b/Shorewall/lib.cli-std index 7d30bf874..6736091f9 100644 --- a/Shorewall/lib.cli-std +++ b/Shorewall/lib.cli-std @@ -341,8 +341,12 @@ get_config() { fi fi - if [ -n "$DYNAMIC_BLACKLIST" ]; then - setup_dbl + if [ -n "$DYNAMIC_BLACKLIST" -a "$(id -u)" = 0 ]; then + case $COMMAND in + reload|restart|start|blacklist|allow) + setup_dbl + ;; + esac fi if [ -z "$PERL_HASH_SEED" ]; then