Files
sql-server-samples/samples/containers/replication/db1/db-init.sh
T

11 lines
334 B
Bash

#wait for the SQL Server to come up
sleep 25s
mkdir /var/opt/mssql/ReplData/
chown mssql /var/opt/mssql/ReplData/
chgrp mssql /var/opt/mssql/ReplData/
echo "running set up script"
#run the setup script to create the DB and the schema in the DB
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P MssqlPass123 -d master -i db-init.sql