app: Fix the message to wait for database
'echo -n' is useless because the message is not logged until sending a newline character.
This commit is contained in:
parent
57d1d448b2
commit
ac0b7062a3
@ -11,18 +11,13 @@ else
|
|||||||
echo SKIP
|
echo SKIP
|
||||||
fi
|
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
|
until nc -z $PG_PORT_5432_TCP_ADDR $PG_PORT_5432_TCP_PORT
|
||||||
do
|
do
|
||||||
echo -n .
|
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
# Wait to avoid "panic: Failed to open sql connection pq: the database system is starting up"
|
|
||||||
sleep 1
|
|
||||||
|
|
||||||
echo "OK"
|
|
||||||
|
|
||||||
echo "Starting platform"
|
echo "Starting platform"
|
||||||
cd /mattermost/bin
|
cd /mattermost/bin
|
||||||
./platform
|
./platform
|
||||||
|
Reference in New Issue
Block a user