From e2998c11d96fd7f03c081fd5516d4457c7b704ca Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Thu, 23 Jan 2020 12:27:19 +0100
Subject: [PATCH] fixing directory permissions in dockerfile

---
 Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index e6b4514e5..73ac6bec7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,7 +36,9 @@ COPY config/nginx-default.conf /etc/nginx/conf.d/default.conf
 COPY --chown=root:nginx . /html
 RUN chmod -R g+w storage bootstrap/cache
 
-CMD /etc/init.d/cron start && \
+CMD chown -R root:nginx storage/logs/metager bootstrap/cache && \
+    chmod -R g+w storage/logs/metager bootstrap/cache && \
+    /etc/init.d/cron start && \
     /etc/init.d/php7.3-fpm start && \
     /etc/init.d/nginx start && \
     /etc/init.d/redis-server start && \
-- 
GitLab