From f12b2286d9e4b6aeb7c54272565f76911b457f57 Mon Sep 17 00:00:00 2001 From: James Mills <1290234+prologic@users.noreply.github.com> Date: Sat, 12 Aug 2023 13:56:54 +1000 Subject: [PATCH] Add set -e to entrypoint --- .dockerfiles/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.dockerfiles/entrypoint.sh b/.dockerfiles/entrypoint.sh index a0d6786..3b35edc 100755 --- a/.dockerfiles/entrypoint.sh +++ b/.dockerfiles/entrypoint.sh @@ -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)"