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"