zs-starter-template/.dockerfiles/entrypoint.sh

10 lines
214 B
Bash
Raw Normal View History

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