From 30028fc316557ea82cfc75a84dd83485fc0b0fb9 Mon Sep 17 00:00:00 2001 From: ACX <8075870+acx10@users.noreply.github.com> Date: Sat, 28 Feb 2026 22:04:53 -0700 Subject: [PATCH] fix /app/data and /bookdrop ownership in entrypoint (#3119) (#3128) --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index aee04b463..299b46d31 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,4 +12,8 @@ if ! getent passwd "$USER_ID" >/dev/null 2>&1; then adduser -u "$USER_ID" -G "$(getent group "$GROUP_ID" | cut -d: -f1)" -S -D booklore fi +# Ensure data and bookdrop directories exist and are writable by the target user +mkdir -p /app/data /bookdrop +chown "$USER_ID:$GROUP_ID" /app/data /bookdrop 2>/dev/null || true + exec su-exec "$USER_ID:$GROUP_ID" "$@"