From 4610e2c23bf702d6240f4a10bd7a201f81ff4031 Mon Sep 17 00:00:00 2001 From: Nigel Banks Date: Wed, 9 Feb 2022 22:39:15 +0000 Subject: [PATCH] Test for create_database being called before the container has initialized --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 1077b7d3e..19ba64178 100644 --- a/Makefile +++ b/Makefile @@ -114,6 +114,7 @@ endif .PHONY: drupal-database .SILENT: drupal-database drupal-database: + docker-compose exec -T drupal timeout 300 bash -c "while ! test -e /var/run/nginx/nginx.pid -a -e /var/run/php-fpm7/php-fpm7.pid; do sleep 1; done" docker-compose exec -T drupal with-contenv bash -lc "for_all_sites create_database" # Installs drupal site(s) using environment variables.