From 97880a0f0cd039531c75b2d28397d2bccf6b0229 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 15 Sep 2025 16:16:16 +0200 Subject: [PATCH] Update ha_entrypoint.sh to modify s6 commands --- .templates/ha_entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index 32e92989c..087a84760 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -57,6 +57,7 @@ apply_s6_mods() { sed -i "1s|^.*|#!$shebang|" "$file" sed -i -E 's|s6-setuidgid[[:space:]]+([a-zA-Z0-9._-]+)[[:space:]]+(.*)$|su -s /bin/bash \1 -c "\2"|g' "$file" sed -i -E 's|s6-svwait[[:space:]]+-d[[:space:]]+([^[:space:]]+)|bash -c '\''while [ -f \1/supervise/pid ]; do sleep 0.5; done'\''|g' "$file" + sed -i -E 's|s6-envuidgid[[:space:]]+([a-zA-Z0-9._-]+)[[:space:]]+(.*)$|su -s /bin/bash \1 -c "UID=\\$(id -u \1) GID=\\$(id -g \1) exec \2"|g' "$file" chmod +x "$file" || true }