fix mssql startup (#985)

- Sleep 45s is invalid
- /opt/mssql/bin/sqlservr is the correct path for mssql binary
This commit is contained in:
Diego Vieira 2017-05-30 15:05:09 +01:00 committed by Bo-Yi Wu
parent f296a39bf5
commit e23ecb6a11
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
#wait for the SQL Server to come up #wait for the SQL Server to come up
sleep 45s sleep 45
#run the setup script to create the DB and the schema in the DB #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 /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -d master -i setup.sql

View File

@ -1,2 +1,2 @@
#start SQL Server, start the script to create the DB and import the data, start the app #start SQL Server, start the script to create the DB and import the data, start the app
/opt/mssql/bin/sqlservr.sh & /usr/src/app/create_table.sh & tail -f /dev/null /opt/mssql/bin/sqlservr & /usr/src/app/create_table.sh & tail -f /dev/null