mirror of
https://git.mills.io/prologic/zs.git
synced 2024-11-08 03:07:57 -05:00
10 lines
214 B
Bash
10 lines
214 B
Bash
|
#!/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 "$@"
|