From fa1d0370560ec0800ce46e196934a2d9627b6f0b Mon Sep 17 00:00:00 2001 From: casjay Date: Wed, 11 Jun 2025 17:23:27 -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/zz-nginx.sh --- rootfs/usr/local/etc/docker/init.d/zz-nginx.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh b/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh index f822e42..4cf5fbf 100755 --- a/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh +++ b/rootfs/usr/local/etc/docker/init.d/zz-nginx.sh @@ -236,7 +236,10 @@ __run_pre_execute_checks() { __update_conf_files() { local exitCode=0 # default exit code local sysname="${SERVER_NAME:-${FULL_DOMAIN_NAME:-$HOSTNAME}}" # set hostname - [ -f "$WWW_ROOT_DIR/default_host.txt" ] && default_host="$(<"$WWW_ROOT_DIR/default_host.txt")" && rm -Rf "$WWW_ROOT_DIR/default_host.txt" + if [ -f "$WWW_ROOT_DIR/default_host.txt" ]; then + default_host="${DEFAULT_ONION_SITE:-$(<"$WWW_ROOT_DIR/default_host.txt")}" + rm -Rf "$WWW_ROOT_DIR/default_host.txt" + fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # delete files #__rm ""