From 21e44d592f48893046a0c309cb3bd83cbe6bd841 Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Sun, 24 Aug 2025 17:12:45 +0930 Subject: [PATCH] fix(entrypoint): simplify umask handling --- entrypoint.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 50811e1..d56bf9c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,7 +9,6 @@ UMASK=${UMASK:-022} echo "Starting with UID: $PUID, GID: $PGID, UMASK: $UMASK" -# Set umask umask "$UMASK" # Create group with specified GID @@ -30,6 +29,6 @@ if [ -d "/config" ]; then chown -R "$PUID:$PGID" /config fi -# Execute the main command as the specified user with umask -echo "Starting application as user $PUID:$PGID with umask $UMASK" -exec gosu "$PUID:$PGID" /bin/bash -c "umask $UMASK && exec $(printf '%q ' "$@")" \ No newline at end of file +# Execute the main command as the specified user +echo "Starting application as user $PUID:$PGID" +exec gosu "$PUID:$PGID" "$@" \ No newline at end of file