Skip to content

Commit

Permalink
Fix symfony cache ownership after running console command as root
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeulen committed Sep 22, 2023
1 parent c8b789f commit f15fc55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stepup/init-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f15fc55

Please sign in to comment.