From e6f30ac25f0dd5fc7b8ef446641d5552c7185a92 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 31 Mar 2026 16:26:44 +0000 Subject: [PATCH] Fix container restart loop when sandboxed compiles is disabled Use ${VAR:-} default value syntax for SANDBOXED_COMPILES_SIBLING_CONTAINERS in env.sh to prevent "unbound variable" error under set -u when the variable is not defined (i.e. when sandboxed compiles is turned off). --- server-ce/config/env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server-ce/config/env.sh b/server-ce/config/env.sh index 7c12b7aa30..4f962680b7 100644 --- a/server-ce/config/env.sh +++ b/server-ce/config/env.sh @@ -17,6 +17,6 @@ export WEB_API_HOST=127.0.0.1 # we need to set the TEXLIVE_IMAGE_USER to www-data so that the # sandboxed compiles container can access the files # created by the web container. -if [ "$SANDBOXED_COMPILES_SIBLING_CONTAINERS" = "true" ]; then +if [ "${SANDBOXED_COMPILES_SIBLING_CONTAINERS:-}" = "true" ]; then export TEXLIVE_IMAGE_USER=www-data fi \ No newline at end of file