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