fiddle with the docker command
This commit is contained in:
parent
9e67178c6d
commit
5791bebbfc
3
cfg/run.sh
Executable file
3
cfg/run.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#! /bin/bash
|
||||||
|
useradd -u 1005 -M davidb
|
||||||
|
exec /usr/sbin/named -g -4 -u davidb
|
@ -1,9 +1,10 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
BASE_CONF_DIR=/etc/bind
|
#BASE_CONF_DIR=/etc/bind
|
||||||
|
BASE_CONF_DIR=/home/davidb/src/docker_bind
|
||||||
: "${DNS_PORT:=53}"
|
: "${DNS_PORT:=53}"
|
||||||
: "${RNDC_PORT:=953}"
|
: "${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=""
|
[ "$1" = "interactive" ] && ARGS="-ti --entrypoint=/bin/bash" && CMD=""
|
||||||
|
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
|
Loading…
Reference in New Issue
Block a user