From 1e39182479fc03acbb66304be894d596dde9c6af Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Wed, 8 Dec 2021 16:59:05 +0100 Subject: [PATCH] fix: handle permissions See https://git.coopcloud.tech/coop-cloud-chaos-patchs/calibre-web/issues/3 --- abra.sh | 2 +- entrypoint.sh.tmpl | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/abra.sh b/abra.sh index c412875..b8f2d35 100644 --- a/abra.sh +++ b/abra.sh @@ -1,2 +1,2 @@ -export APP_ENTRYPOINT_VERSION=v1 +export APP_ENTRYPOINT_VERSION=v2 export NGINX_CONFIG_VERSION=v1 diff --git a/entrypoint.sh.tmpl b/entrypoint.sh.tmpl index e4f56f6..23c6c89 100644 --- a/entrypoint.sh.tmpl +++ b/entrypoint.sh.tmpl @@ -32,3 +32,8 @@ if [ ! -f "/books/metadata.db" ]; then else echo "/books/metadata.db exists, not creating another one" fi + +echo "ensuring permissions are set correctly on metadata parent directory" +/usr/bin/chmod a+rw /books + +echo "entrypoint done"