From 4422b75b12b71e00aaa86c6774c3403081a7b5e1 Mon Sep 17 00:00:00 2001 From: Pieter van der Meulen Date: Thu, 21 Sep 2023 17:22:09 +0200 Subject: [PATCH] Fix symfony cache ownership after running console command as root --- stepup/init-db.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepup/init-db.sh b/stepup/init-db.sh index 85d531b..d53ffd4 100755 --- a/stepup/init-db.sh +++ b/stepup/init-db.sh @@ -7,9 +7,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" echo "Initializing middleware and gateway databases" docker compose exec middleware /var/www/html/bin/console doctrine:migrations:migrate --env=prod --em=deploy --no-interaction +docker compose exec middleware chown -R www-data /var/www/html/var/cache echo "Initializing webauthn database" docker compose exec webauthn /var/www/html/bin/console doctrine:migrations:migrate --env=prod --no-interaction +docker compose exec webauthn chown -R www-data /var/www/html/var/cache echo "Pushing middleware configuration" sh "${DIR}/middleware/middleware-push-config.sh"