diff --git a/maintainerr/rootfs/ha_entrypoint.sh b/maintainerr/rootfs/ha_entrypoint.sh index 34e97c641..230c23fbe 100755 --- a/maintainerr/rootfs/ha_entrypoint.sh +++ b/maintainerr/rootfs/ha_entrypoint.sh @@ -7,19 +7,13 @@ set -e # Runs cont-init.d scripts then drops privileges and starts the app. ############################################################################### -# ─── Source standalone bashio if available ─────────────────────────────────── -if [ -f /usr/local/lib/bashio-standalone.sh ]; then - # shellcheck disable=SC1091 - source /usr/local/lib/bashio-standalone.sh -fi - # ─── Run cont-init.d scripts ───────────────────────────────────────────────── if [ -d /etc/cont-init.d ]; then for script in /etc/cont-init.d/*.sh; do [ -f "$script" ] || continue + sed -i "1a\#!/usr/bin/env bashio" "$script" echo "[Maintainerr] Running init script: $script" - # Use bash directly (no S6 with-contenv available) - bash "$script" + exec "$script" done fi