From 931b2c6592bc10522e82211b1a365e68ca692d4d Mon Sep 17 00:00:00 2001 From: David Blacka Date: Sat, 25 Feb 2023 14:51:25 -0500 Subject: [PATCH] adjust run script --- run_bind.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run_bind.sh b/run_bind.sh index 2ddda78..4af2eac 100755 --- a/run_bind.sh +++ b/run_bind.sh @@ -3,7 +3,8 @@ BASE_CONF_DIR=/etc/bind : "${DNS_PORT:=53}" : "${RNDC_PORT:=953}" -[ "$1" = "interactive" ] && ARGS="-ti --entrypoint=/bin/bash" +CMD="/usr/sbin/named -c /etc/bind/named.conf -4 -f" +[ "$1" = "interactive" ] && ARGS="-ti --entrypoint=/bin/bash" && CMD="" # shellcheck disable=SC2086 docker run $ARGS \ @@ -17,5 +18,4 @@ docker run $ARGS \ -v $BASE_CONF_DIR/cache:/var/cache/bind \ -v $BASE_CONF_DIR/zones:/var/lib/bind \ -v $BASE_CONF_DIR/log:/var/log \ - docker.io/internetsystemsconsortium/bind9:9.18 \ - /usr/sbin/named -c /etc/bind/named.conf -4 -f + docker.io/internetsystemsconsortium/bind9:9.18 $CMD