From e6deb77cbef43c8f0f8446d31d6b03aac53e3a41 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 2 Oct 2018 11:53:08 +0200 Subject: [PATCH] Remove DB check in the app/entrypoint (#316) * fix check * remove db check --- app/entrypoint.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/entrypoint.sh b/app/entrypoint.sh index 134772b..b00d537 100755 --- a/app/entrypoint.sh +++ b/app/entrypoint.sh @@ -67,16 +67,6 @@ if [ "$1" = 'mattermost' ]; then echo "Using existing config file" $MM_CONFIG fi - if [ ! -z "$DB_HOST" ] - then - # Wait for database to be reachable - echo "Wait until database $DB_HOST:$DB_PORT_NUMBER is ready..." - until nc -z $DB_HOST $DB_PORT_NUMBER - do - sleep 1 - done - fi - # Wait another second for the database to be properly started. # Necessary to avoid "panic: Failed to open sql connection pq: the database system is starting up" sleep 1