Update run-application.sh

reverted postgresql port check
This commit is contained in:
Abdu Sahin 2017-09-19 13:57:50 +01:00 committed by GitHub
parent 9367871f2e
commit 297c58f83c

View File

@ -28,7 +28,7 @@ fi
if [ "$DATABASE_TYPE" == "sql" ]; then if [ "$DATABASE_TYPE" == "sql" ]; then
if [ "$SPRING_DRIVER_CLASS_NAME" == "org.postgresql.Driver" ]; then if [ "$SPRING_DRIVER_CLASS_NAME" == "org.postgresql.Driver" ]; then
until nmap $POSTGRES_HOST -p $POSTGRES_PORT | grep "$POSTGRES_PORT/tcp open\filtered" until nmap $POSTGRES_HOST -p $POSTGRES_PORT | grep "$POSTGRES_PORT/tcp open"
do do
echo "Waiting for postgres db to start..." echo "Waiting for postgres db to start..."
sleep 10 sleep 10