From af9beafe7ae585d0d5ae7cd03b9c918e372584b5 Mon Sep 17 00:00:00 2001 From: brios <127139797+balazs-szucs@users.noreply.github.com> Date: Tue, 24 Mar 2026 10:44:43 +0100 Subject: [PATCH] fix(entrypoint): ensure books directory exists and is writable by the target user (#119) --- packaging/docker/entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packaging/docker/entrypoint.sh b/packaging/docker/entrypoint.sh index d1ef2b5d1..f44cca9bd 100644 --- a/packaging/docker/entrypoint.sh +++ b/packaging/docker/entrypoint.sh @@ -30,8 +30,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 "$APP_USER" 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 +# Ensure data, bookdrop, and books directories exist and are writable by the target user +mkdir -p /app/data /bookdrop /books +chown "$USER_ID:$GROUP_ID" /app/data /bookdrop /books 2>/dev/null || true exec su-exec "$USER_ID:$GROUP_ID" "$@"