zs-starter-template/.dockerfiles/entrypoint.sh
2023-03-11 18:46:05 +10:00

10 lines
214 B
Bash
Executable File

#!/bin/sh
[ -n "${PUID}" ] && usermod -u "${PUID}" zs
[ -n "${PGID}" ] && groupmod -g "${PGID}" zs
printf "Configuring zs...\n"
printf "Switching UID=%s and GID=%s\n" "${PUID}" "${PGID}"
exec su-exec zs:zs "$@"