php-sqlsrv/TestSqlcmd.sh
2017-07-31 17:08:32 -07:00

11 lines
205 B
Bash

#!bin/bash
set -e
$test = "sqlcmd -S sql -U sa -P Password123"
until $test; do
>&2 echo "SQL Server is starting up. Running initial db configuration"
sleep 1
done
echo "SQL Server is up - starting app"