Fix Docker entrypoint

This commit is contained in:
James Mills 2023-03-11 18:46:05 +10:00
parent 46696aaf03
commit e1dc6b0ee3
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -1,10 +1,9 @@
#!/bin/sh
[ -n "${PUID}" ] && usermod -u "${PUID}" mpp
[ -n "${PGID}" ] && groupmod -g "${PGID}" mpp
[ -n "${PUID}" ] && usermod -u "${PUID}" zs
[ -n "${PGID}" ] && groupmod -g "${PGID}" zs
printf "Configuring mpp...\n"
npx react-inject-env set -d /data
printf "Configuring zs...\n"
printf "Switching UID=%s and GID=%s\n" "${PUID}" "${PGID}"
exec su-exec mpp:mpp "$@"
exec su-exec zs:zs "$@"