update entrypoint.sh to enhance script execution logic for scalable_sync.py

This commit is contained in:
Lukas Pierchalla
2026-09-20 12:34:52 +02:00
parent bd5dcdb2f4
commit 2dce764ca9
+9 -1
View File
@@ -16,7 +16,15 @@ EOF
chown ${PUID:-1000}:${PGID:-1000} "${SC_CONF_DIR}/config.toml" chown ${PUID:-1000}:${PGID:-1000} "${SC_CONF_DIR}/config.toml"
fi 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 shift
exec gosu appuser python /app/scalable_sync.py "$@" exec gosu appuser python /app/scalable_sync.py "$@"
fi fi