From 2dce764ca9c281f2120d5b6548d667547e4769a3 Mon Sep 17 00:00:00 2001 From: Lukas Pierchalla Date: Sun, 20 Sep 2026 12:34:52 +0200 Subject: [PATCH] update entrypoint.sh to enhance script execution logic for scalable_sync.py --- entrypoint.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9b623ec..5d2f399 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -16,7 +16,15 @@ EOF chown ${PUID:-1000}:${PGID:-1000} "${SC_CONF_DIR}/config.toml" fi -if [ "$1" = "python" ] || [ "$1" = "/app/scalable_sync.py" ]; then +if [ "$1" = "python" ]; then + shift + if [ "$1" = "/app/scalable_sync.py" ]; then + shift + fi + exec gosu appuser python /app/scalable_sync.py "$@" +fi + +if [ "$1" = "/app/scalable_sync.py" ]; then shift exec gosu appuser python /app/scalable_sync.py "$@" fi