diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index b90f03880..cac109765 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -46,7 +46,9 @@ for SCRIPTS in /etc/cont-init.d/*; do fi # Cleanup - rm "$SCRIPTS" + if bashio::supervisor.ping 2>/dev/null; then + rm "$SCRIPTS" + fi done ######################