From 13f2c83c97f9f3856c2bcf60470619c604ac008d Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 16 Feb 2025 12:52:32 +0100 Subject: [PATCH] Avoid deleting scripts --- .templates/ha_entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index 98a2a4938..7a7d55f6b 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -46,7 +46,10 @@ for SCRIPTS in /etc/cont-init.d/*; do fi # Cleanup - rm "$SCRIPTS" + if bashio::supervisor.ping 2>/dev/null; then + rm "$SCRIPTS" + fi + done ######################