Commit 3d2ccb72 authored by Huihui, Jonathan's avatar Huihui, Jonathan
Browse files

holds off testing until db is spun up

parent 864ee9de
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
#!/usr/bin/env bash
# -*- coding: utf-8 -*-

MAX_RETRIES=60
for i in {1..50};
do
    /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 5nowDog5 -d master -i setup.sql
    if [ $? -eq 0 ]
    then
        echo "setup.sql completed"
        break
    else
        echo "not ready yet..."
        sleep 1
    fi
done
 No newline at end of file