mirror of
https://git.mills.io/prologic/zs-starter-template.git
synced 2024-11-22 05:16:04 +03:00
Fix Docker entrypoint
This commit is contained in:
parent
46696aaf03
commit
e1dc6b0ee3
@ -1,10 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
[ -n "${PUID}" ] && usermod -u "${PUID}" mpp
|
[ -n "${PUID}" ] && usermod -u "${PUID}" zs
|
||||||
[ -n "${PGID}" ] && groupmod -g "${PGID}" mpp
|
[ -n "${PGID}" ] && groupmod -g "${PGID}" zs
|
||||||
|
|
||||||
printf "Configuring mpp...\n"
|
printf "Configuring zs...\n"
|
||||||
npx react-inject-env set -d /data
|
|
||||||
|
|
||||||
printf "Switching UID=%s and GID=%s\n" "${PUID}" "${PGID}"
|
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