php-sqlsrv/entrypoint.sh

11 lines
190 B
Bash
Raw Normal View History

2017-07-29 02:18:07 +02:00
set -e
2017-08-02 21:55:12 +02:00
2017-08-02 21:48:41 +02:00
testConnection="/opt/mssql-tools/bin/sqlcmd -S sql -U sa -P Password123"
2017-07-29 02:18:07 +02:00
2017-08-02 21:38:18 +02:00
until $testConnection; do
>&2 echo "SQL Server is starting up.."
2017-07-29 02:18:07 +02:00
sleep 1
done
2017-08-02 18:46:59 +02:00
>&2 echo "SQL Server is up!"