From 31c9b6d170156c097e0ccbf5ae3d0560b191befe Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 6 Nov 2025 10:07:56 -0800 Subject: [PATCH] Use exec with su-exec and fix string comparison --- docker-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 16ce33aa6..5e8f7aa56 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -57,8 +57,8 @@ if [ -d /app/.next ]; then fi # Drop privileges (when asked to) if root, otherwise run as current user -if [ "$(id -u)" == "0" ] && [ "${PUID}" != "0" ]; then - su-exec ${PUID}:${PGID} "$@" +if [ "$(id -u)" = "0" ] && [ "${PUID}" != "0" ]; then + exec su-exec ${PUID}:${PGID} "$@" else exec "$@" fi