From 8924763aa58fd173c23fe58001c46e0f0c554766 Mon Sep 17 00:00:00 2001 From: casjay Date: Tue, 24 Sep 2024 07:30:55 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/init.d/02-named.sh --- rootfs/usr/local/etc/docker/init.d/02-named.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rootfs/usr/local/etc/docker/init.d/02-named.sh b/rootfs/usr/local/etc/docker/init.d/02-named.sh index d6b0599..25ed366 100755 --- a/rootfs/usr/local/etc/docker/init.d/02-named.sh +++ b/rootfs/usr/local/etc/docker/init.d/02-named.sh @@ -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"