From 6d65f5e114f228c8a3148cb9d7e73bd9986ba4cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Lo=CC=88sken?= Date: Mon, 1 Jun 2020 23:17:46 +0200 Subject: [PATCH] Make folder writeable by web server, update config cache --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e776b26..2b62f94 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -88,9 +88,8 @@ if [ ! -e /var/www/app/public/version ] || [ "$INVOICENINJA_VERSION" != "$(cat / echo $INVOICENINJA_VERSION > /var/www/app/public/version fi -# Set permission for mounted directories -chown invoiceninja:www-data /var/www/app/storage -chown invoiceninja:www-data /var/www/app/public +# Set permission for web server to create/update files +chown -R invoiceninja:www-data /var/www/app/storage /var/www/app/public /var/www/app/bootstrap # Initialize values that might be stored in a file file_env 'APP_KEY' @@ -105,6 +104,7 @@ file_env 'S3_KEY' file_env 'S3_SECRET' # Run Laravel stuff +php artisan config:cache php artisan optimize exec docker-php-entrypoint "$@"