mirror of
https://git.mills.io/prologic/zs
synced 2024-11-23 22:06:13 +03:00
Add set -e to entrypoint
This commit is contained in:
parent
15e7a102cd
commit
f12b2286d9
@ -1,11 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
[ -n "${PUID}" ] && usermod -u "${PUID}" nobody
|
[ -n "${PUID}" ] && usermod -u "${PUID}" nobody
|
||||||
[ -n "${PGID}" ] && groupmod -g "${PGID}" nobody
|
[ -n "${PGID}" ] && groupmod -g "${PGID}" nobody
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf "Configuring zs...\n"
|
printf "Configuring application...\n"
|
||||||
|
|
||||||
if [ "$(id -u)" -eq 0 ]; then
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
printf "Switching UID=%s and GID=%s\n" "$(id -u nobody)" "$(id -g nobody)"
|
printf "Switching UID=%s and GID=%s\n" "$(id -u nobody)" "$(id -g nobody)"
|
||||||
|
Loading…
Reference in New Issue
Block a user