From 4574b39652717f455d71ba3d9f42bf394616ad34 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 31 Jan 2026 13:22:44 +0100 Subject: [PATCH] Update ha_entrypoint.sh --- .templates/ha_entrypoint.sh | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index 3a17c354f..dc722b7fd 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -152,6 +152,11 @@ echo "Selected shebang: #!$shebang" # Starting scripts # #################### +if [ -f /docker-mods ]; then + echo "Running docker mods" + /docker-mods +fi + run_one_script() { local script="$1" @@ -190,11 +195,6 @@ if [ -d /etc/cont-init.d ]; then fi if $PID1; then - if [ -f /docker-mods ]; then - echo "Running docker mods" - /docker-mods - fi - shopt -s nullglob for runfile in /etc/services.d/*/run /etc/s6-overlay/s6-rc.d/*/run; do [ -f "$runfile" ] || continue @@ -247,7 +247,4 @@ else echo " " echo -e "\033[0;32mStarting the upstream container\033[0m" echo " " - if [ -f /docker-mods ]; then - exec /docker-mods - fi fi