mirror of
https://github.com/casjaysdevdocker/bind
synced 2024-11-21 11:23:10 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/02-named.sh
This commit is contained in:
parent
73bd7e208e
commit
8924763aa5
@ -195,6 +195,8 @@ CMD_ENV=""
|
||||
__run_precopy() {
|
||||
# Define environment
|
||||
local hostname=${HOSTNAME}
|
||||
# exit script if ENV has HTTP_ONLY=yes
|
||||
[ "$HTTP_ONLY" = "yes" ] && exit 0
|
||||
# Define actions/commands
|
||||
[ -d "/data/named" ] && [ ! -d "$DATA_DIR" ] && mv -fv "/data/named" "$DATA_DIR"
|
||||
[ -d "/config/named" ] && [ ! -d "$CONF_DIR" ] && mv -fv "/config/named" "$CONF_DIR"
|
||||
|
Loading…
Reference in New Issue
Block a user