Skip to content

Commit 4422b75

Browse files
committed
Fix symfony cache ownership after running console command as root
1 parent 78f380c commit 4422b75

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stepup/init-db.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
77

88
echo "Initializing middleware and gateway databases"
99
docker compose exec middleware /var/www/html/bin/console doctrine:migrations:migrate --env=prod --em=deploy --no-interaction
10+
docker compose exec middleware chown -R www-data /var/www/html/var/cache
1011

1112
echo "Initializing webauthn database"
1213
docker compose exec webauthn /var/www/html/bin/console doctrine:migrations:migrate --env=prod --no-interaction
14+
docker compose exec webauthn chown -R www-data /var/www/html/var/cache
1315

1416
echo "Pushing middleware configuration"
1517
sh "${DIR}/middleware/middleware-push-config.sh"

0 commit comments

Comments
 (0)