From 4490320c53803a43a5bbe615f244478b950f705d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 3 Apr 2026 09:01:09 +0200 Subject: [PATCH] Modify entrypoint to improve script execution Updated init script execution to use exec and added bashio shebang. --- maintainerr/rootfs/ha_entrypoint.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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