From e23ecb6a116eeec4b35cf6a82b6e54a8edbf7328 Mon Sep 17 00:00:00 2001 From: Diego Vieira Date: Tue, 30 May 2017 15:05:09 +0100 Subject: [PATCH] fix mssql startup (#985) - Sleep 45s is invalid - /opt/mssql/bin/sqlservr is the correct path for mssql binary --- mssql/create_table.sh | 2 +- mssql/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mssql/create_table.sh b/mssql/create_table.sh index f0c1a7c6..9fe5214c 100644 --- a/mssql/create_table.sh +++ b/mssql/create_table.sh @@ -1,5 +1,5 @@ #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 /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P $SA_PASSWORD -d master -i setup.sql \ No newline at end of file diff --git a/mssql/entrypoint.sh b/mssql/entrypoint.sh index e3835130..062293b8 100644 --- a/mssql/entrypoint.sh +++ b/mssql/entrypoint.sh @@ -1,2 +1,2 @@ #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 \ No newline at end of file +/opt/mssql/bin/sqlservr & /usr/src/app/create_table.sh & tail -f /dev/null