From 4ec07393d92c53bdeec0477c6b4c99cdade10101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Dunglas?= Date: Sun, 28 Mar 2021 17:51:13 +0200 Subject: [PATCH] Revert "feat: Try to create empty database at startup, in order to avoid the error message : "The database is not up or not reachable" if database doesnt exist. (#119)" This reverts commit cb77bd16f39a0ae8230c1efc8a811416e966af3d. --- docker/php/docker-entrypoint.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/docker/php/docker-entrypoint.sh b/docker/php/docker-entrypoint.sh index e413915..6d0f406 100755 --- a/docker/php/docker-entrypoint.sh +++ b/docker/php/docker-entrypoint.sh @@ -30,8 +30,6 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then fi if grep -q ^DATABASE_URL= .env; then - echo "Try to create database" - bin/console doctrine:database:create --if-not-exists --no-interaction echo "Waiting for db to be ready..." ATTEMPTS_LEFT_TO_REACH_DATABASE=60 until [ $ATTEMPTS_LEFT_TO_REACH_DATABASE -eq 0 ] || DATABASE_ERROR=$(bin/console doctrine:query:sql "SELECT 1" 2>&1); do