🗃️ Update codebase 🗃️

detect_and_update_services.sh
enhanced_functions.sh
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/functions/entrypoint.sh
test_solution.sh

rootfs/root/docker/setup/03-files.sh
rootfs/usr/local/bin/entrypoint.sh
rootfs/usr/local/etc/docker/init.d/02-named.sh
This commit is contained in:
casjay
2025-10-31 12:49:04 -04:00
parent 50464a98dd
commit 4e1fddb861
3 changed files with 13 additions and 5 deletions

View File

@@ -12,8 +12,8 @@
# @@Description : Entrypoint file for bind
# @@Changelog : New script
# @@TODO : Better documentation
# @@Other :
# @@Resource :
# @@Other :
# @@Resource :
# @@Terminal App : no
# @@sudo/root : no
# @@Template : other/docker-entrypoint
@@ -400,9 +400,17 @@ __run_message
# - - - - - - - - - - - - - - - - - - - - - - - - -
# Just start services
START_SERVICES="${START_SERVICES:-SYSTEM_INIT}"
[ "$1" = "sh" ] && START_SERVICES=no
[ "$1" = "shell" ] && START_SERVICES=no
[ "$1" = "init" ] && START_SERVICES=no
[ "$1" = "backup" ] && START_SERVICES=no
[ "$1" = "healthcheck" ] && START_SERVICES=no
[ "$1" = "cron" ] && START_SERVICES=no
[ "$1" = "tail" ] && START_SERVICES=no
[ "$1" = "logs" ] && START_SERVICES=no
# - - - - - - - - - - - - - - - - - - - - - - - - -
# Start all services if no pidfile
if [ "$START_SERVICES" = "yes" ] && [ "$1" != "backup" ] && [ "$1" != "healthcheck" ] && [ "$1" != "cron" ] && [ "$1" != "tail" ] && [ "$1" != "logs" ] && [ "$1" != "cron" ]; then
if [ "$START_SERVICES" = "yes" ]; then
[ "$1" = "start" ] && shift 1
[ "$1" = "all" ] && shift 1
[ "$1" = "init" ] && export CONTAINER_INIT="yes"

View File

@@ -102,7 +102,7 @@ CONF_DIR="/config/bind" # set config directory
ETC_DIR="/etc/bind"
# - - - - - - - - - - - - - - - - - - - - - - - - -
# set the var dir
VAR_DIR=""
VAR_DIR="/var/bind"
# - - - - - - - - - - - - - - - - - - - - - - - - -
TMP_DIR="/tmp/bind" # set the temp dir
RUN_DIR="/run/bind" # set scripts pid dir