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

Remove DB check in the app/entrypoint #316

Merged
merged 2 commits into from
Oct 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ if [ "$1" = 'mattermost' ]; then
echo "Using existing config file" $MM_CONFIG
fi

if [ ! -z "$DB_HOST" ]
if [ -z "$MM_SQLSETTINGS_DATASOURCE" ] && [ ! -f $MM_CONFIG ]
cpanato marked this conversation as resolved.
Show resolved Hide resolved
then
# Wait for database to be reachable
echo "Wait until database $DB_HOST:$DB_PORT_NUMBER is ready..."
Expand Down