From cf6bc3ec12a87e31da0d9e9a2df114cb26c47fb2 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 16 Sep 2025 14:44:05 +0200 Subject: [PATCH] Modify cleanup to echo message instead of removing script Replace script removal with a message and exit. --- .templates/ha_entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index 4394b3fb8..3b701bf21 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -90,7 +90,7 @@ for SCRIPTS in /etc/cont-init.d/*; do fi # Cleanup after execution - rm "$SCRIPTS" + sed -i '1a echo "Script already ran" && exit 0' "$SCRIPTS" done # Start run scripts in services.d and s6-overlay/s6-rc.d if PID1