Skip to content
This repository has been archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
Remove DB check in the app/entrypoint (#316)
Browse files Browse the repository at this point in the history
* fix check

* remove db check
  • Loading branch information
cpanato authored and pichouk committed Oct 2, 2018
1 parent 8adcd9e commit e6deb77
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions app/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e6deb77

Please sign in to comment.