11 lines
245 B
Bash
11 lines
245 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
chown -R ${PUID:-1000}:${PGID:-1000} /app/data 2>/dev/null || true
|
|
|
|
if [ "$1" = "python" ] || [ "$1" = "/app/scalable_sync.py" ]; then
|
|
shift
|
|
exec gosu appuser python /app/scalable_sync.py "$@"
|
|
fi
|
|
|
|
exec gosu appuser "$@" |