From e1dc6b0ee3c294877a5e499fbf47da33b1bd3d91 Mon Sep 17 00:00:00 2001 From: James Mills <1290234+prologic@users.noreply.github.com> Date: Sat, 11 Mar 2023 18:46:05 +1000 Subject: [PATCH] Fix Docker entrypoint --- .dockerfiles/entrypoint.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.dockerfiles/entrypoint.sh b/.dockerfiles/entrypoint.sh index a412db5..d4da611 100755 --- a/.dockerfiles/entrypoint.sh +++ b/.dockerfiles/entrypoint.sh @@ -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 "$@"