🗃️ Committing everything that changed 🗃️

rootfs/usr/local/etc/docker/init.d/02-named.sh
This commit is contained in:
casjay 2024-09-24 07:30:55 -04:00
parent 73bd7e208e
commit 8924763aa5
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145

View File

@ -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"