From b8e0348f0db5a35324561e9edaabc2e96ba601b2 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 15 Sep 2025 15:52:55 +0200 Subject: [PATCH] Conditionally apply s6 mods based on PID1 --- .templates/ha_entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index f1f18f6b0..5bfb86fe8 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -82,7 +82,9 @@ for SCRIPTS in /etc/cont-init.d/*; do fi # Apply s6 compatibility tweaks - apply_s6_mods "$SCRIPTS" + if $PID1; then + apply_s6_mods "$SCRIPTS" + fi # Optionally use 'source' to share env variables, when requested if [ "${ha_entry_source:-null}" = true ]; then