From 7ab70948a09e06447de2f0cab84492837884050f Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Sat, 30 May 2026 16:50:04 -0400 Subject: [PATCH] fix(playout): entrypoint handles 2.4.x bin/casparcg layout + LD_LIBRARY_PATH for bundled libs --- services/playout/entrypoint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/services/playout/entrypoint.sh b/services/playout/entrypoint.sh index d154252..98ade0f 100644 --- a/services/playout/entrypoint.sh +++ b/services/playout/entrypoint.sh @@ -17,9 +17,14 @@ fi mkdir -p /media/casparcg/log /media/casparcg/data /media/templates +# 2.4.x zip bundles its own .so files under lib/ — add to LD_LIBRARY_PATH. +export LD_LIBRARY_PATH="/opt/casparcg/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" + cd /opt/casparcg CASPAR_CFG=/opt/casparcg/casparcg.config -if [ -x "./casparcg" ]; then CASPAR_BIN="./casparcg"; +# 2.4.x: binary at bin/casparcg. 2.5.x: symlinked to casparcg at root. +if [ -x "./bin/casparcg" ]; then CASPAR_BIN="./bin/casparcg"; +elif [ -x "./casparcg" ]; then CASPAR_BIN="./casparcg"; elif [ -x "./CasparCG Server" ]; then CASPAR_BIN="./CasparCG Server"; elif command -v casparcg >/dev/null; then CASPAR_BIN="casparcg"; else echo "[entrypoint] ERROR: casparcg binary not found"; exit 1; fi