mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-21 12:56:04 +03:00
Fix Docker entrypoint
This commit is contained in:
parent
46696aaf03
commit
e1dc6b0ee3
@ -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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user