14 lines
305 B
Bash
14 lines
305 B
Bash
#!/usr/bin/env bash
|
|
|
|
/opt/mssql/bin/sqlservr &
|
|
pid=$!
|
|
|
|
# Wait 15 seconds for SQL Server to start up
|
|
sleep 15
|
|
|
|
# Run the setup script to create the DB and the schema in the DB
|
|
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "$SA_PASSWORD" -d master -i setup.sql
|
|
|
|
# Wait for sqlservr to exit
|
|
wait -n $pid
|