Skip to content

Conversation

boerngen-schmidt
Copy link

Changed DBSTATUS to be striped of spaces.
The comparison of DBSTATUS and ERRCODE was changed to a string comparison, because the return value of sqlcmd when DB is not ready is an empty string.

Changed DBSTATUS to be striped of spaces. 
The comparison of DBSTATUS and ERRCODE was changed to a string comparison, because the return value of sqlcmd when DB is not ready is an empty string.
done

# 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/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 $MSSQL_SA_PASSWORD -d master -i setup.sql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants