update entrypoint.sh to enhance script execution logic for scalable_sync.py
This commit is contained in:
+9
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user