Add set -e to entrypoint

This commit is contained in:
James Mills 2023-08-12 13:56:54 +10:00
parent 15e7a102cd
commit f12b2286d9
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
1 changed files with 3 additions and 1 deletions

View File

@ -1,11 +1,13 @@
#!/bin/sh
set -e
if [ "$(id -u)" -eq 0 ]; then
[ -n "${PUID}" ] && usermod -u "${PUID}" nobody
[ -n "${PGID}" ] && groupmod -g "${PGID}" nobody
fi
printf "Configuring zs...\n"
printf "Configuring application...\n"
if [ "$(id -u)" -eq 0 ]; then
printf "Switching UID=%s and GID=%s\n" "$(id -u nobody)" "$(id -g nobody)"