From 212dd695b698561df2d1d868d24c529531097584 Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Sun, 24 Aug 2025 16:20:17 +0930 Subject: [PATCH] fix(entrypoint): start shell with overriden umask --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 5e20e33..50811e1 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -30,6 +30,6 @@ if [ -d "/config" ]; then chown -R "$PUID:$PGID" /config fi -# 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 +# 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