From 7812a1bb51ac3c1c51c25175fbdbce5773586759 Mon Sep 17 00:00:00 2001 From: James Cole Date: Fri, 6 Apr 2018 18:14:48 +0200 Subject: [PATCH] Fix for #1320 --- .deploy/docker/entrypoint.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.deploy/docker/entrypoint.sh b/.deploy/docker/entrypoint.sh index 088a999742..c04a7d10ff 100755 --- a/.deploy/docker/entrypoint.sh +++ b/.deploy/docker/entrypoint.sh @@ -1,8 +1,11 @@ #!/bin/bash # make sure we own the volumes: -chown -R www-data:www-data $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload -chmod -R 775 $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload +chown -R www-data:www-data -R $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/logs +chmod -R 775 $FIREFLY_PATH/storage/export $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/upload $FIREFLY_PATH/storage/logs + +# remove any lingering files that may break upgrades: +rm -f $FIREFLY_PATH/storage/logs/laravel.log cat .env.docker | envsubst > .env && cat .env composer dump-autoload