fix(entrypoint): start shell with overriden umask

This commit is contained in:
Sam Chau
2025-08-24 16:20:17 +09:30
parent 6c40d352c9
commit 212dd695b6

View File

@@ -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" "$@"
# 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 ' "$@")"