From 4f0aa1b1393bd7d5c512fa5e6ec6a5b64347bd99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emrik=20=C3=96stling?= Date: Sat, 26 Sep 2026 02:16:34 +0200 Subject: [PATCH] fix: allow PUID and PGID to be unset (#656) --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 520ad7b..acc2259 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,8 +1,8 @@ #!/usr/bin/env bash set -e -if ! [[ "$PUID" =~ ^[0-9]+$ ]] || ! [[ "$PGID" =~ ^[0-9]+$ ]]; then - echo "[entrypoint] ERROR: PUID and PGID must be numeric integers." >&2 +if [[ -n "$PUID" && ! "$PUID" =~ ^[0-9]+$ ]] || [[ -n "$PGID" && ! "$PGID" =~ ^[0-9]+$ ]] || [[ -z "$PUID" && -n "$PGID" ]]; then + echo "[entrypoint] ERROR: PUID and PGID must be numeric integers or unset." >&2 exit 1 fi