fiddle with the docker command

This commit is contained in:
David Blacka 2023-02-25 15:27:49 -05:00
parent 9e67178c6d
commit 5791bebbfc
2 changed files with 6 additions and 2 deletions

3
cfg/run.sh Executable file
View File

@ -0,0 +1,3 @@
#! /bin/bash
useradd -u 1005 -M davidb
exec /usr/sbin/named -g -4 -u davidb

View File

@ -1,9 +1,10 @@
#! /bin/bash
BASE_CONF_DIR=/etc/bind
#BASE_CONF_DIR=/etc/bind
BASE_CONF_DIR=/home/davidb/src/docker_bind
: "${DNS_PORT:=53}"
: "${RNDC_PORT:=953}"
CMD="/usr/sbin/named -c /etc/bind/named.conf -4 -f"
CMD="/etc/bind/run.sh"
[ "$1" = "interactive" ] && ARGS="-ti --entrypoint=/bin/bash" && CMD=""
# shellcheck disable=SC2086