From 2f4cf45fe887e4b04ade3cd7aab74de507bcefec Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 3 Apr 2026 09:02:31 +0200 Subject: [PATCH] Update shebang and execution method in init scripts Modify shebang insertion and change script execution method. --- maintainerr/rootfs/ha_entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maintainerr/rootfs/ha_entrypoint.sh b/maintainerr/rootfs/ha_entrypoint.sh index 230c23fbe..8be100739 100755 --- a/maintainerr/rootfs/ha_entrypoint.sh +++ b/maintainerr/rootfs/ha_entrypoint.sh @@ -11,9 +11,9 @@ set -e 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" + sed -i '1s|.*|#!/usr/bin/env bashio|' "$script" echo "[Maintainerr] Running init script: $script" - exec "$script" + bash "$script" # ← bash, not exec done fi