From ddf386c4d4aa61f59c671a54be07e5880ec95276 Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Thu, 21 Jan 2021 01:02:41 +0100 Subject: [PATCH] add temporary directory during startup and ensure correct permissions --- docker/docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/docker-entrypoint.sh b/docker/docker-entrypoint.sh index 8e1a21757..5919b14aa 100644 --- a/docker/docker-entrypoint.sh +++ b/docker/docker-entrypoint.sh @@ -79,7 +79,11 @@ initialize() { fi done + echo "creating directory /tmp/paperless" + mkdir -p /tmp/paperless + chown -R paperless:paperless ../ + chown -R paperless:paperless /tmp/paperless migrations