From ac0b7062a3b356095542b9b8f711d1ff4e7e89f9 Mon Sep 17 00:00:00 2001 From: Yi EungJun Date: Mon, 25 Jan 2016 12:26:41 +0900 Subject: [PATCH] app: Fix the message to wait for database 'echo -n' is useless because the message is not logged until sending a newline character. --- app/docker-entry.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/docker-entry.sh b/app/docker-entry.sh index 6cdd049..a40b353 100644 --- a/app/docker-entry.sh +++ b/app/docker-entry.sh @@ -11,18 +11,13 @@ else echo SKIP fi -echo -n "Wait until database is ready..." +# Wait to avoid "panic: Failed to open sql connection pq: the database system is starting up" +echo "Wait until database is ready..." until nc -z $PG_PORT_5432_TCP_ADDR $PG_PORT_5432_TCP_PORT do - echo -n . sleep 1 done -# Wait to avoid "panic: Failed to open sql connection pq: the database system is starting up" -sleep 1 - -echo "OK" - echo "Starting platform" cd /mattermost/bin ./platform