From 3e5d8933d5aa285ff92f6056523bbb6a2f347b18 Mon Sep 17 00:00:00 2001 From: j2gg0s Date: Fri, 22 Nov 2024 15:05:50 +0800 Subject: [PATCH] ci: with self ssl cert --- internal/dbtest/mssql-docker/configure-db.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/dbtest/mssql-docker/configure-db.sh b/internal/dbtest/mssql-docker/configure-db.sh index 24070d1e0..a0fdbbab8 100755 --- a/internal/dbtest/mssql-docker/configure-db.sh +++ b/internal/dbtest/mssql-docker/configure-db.sh @@ -11,12 +11,12 @@ i=0 while [[ $DBSTATUS -ne 0 ]] && [[ $i -lt 60 ]] && [[ $ERRCODE -ne 0 ]]; do i=$i+1 - DBSTATUS=$(/opt/mssql-tools18/bin/sqlcmd -h -1 -t 1 -U sa -P "$MYSQL_SA_PASSWORD" -Q "SET NOCOUNT ON; Select SUM(state) from sys.databases") + DBSTATUS=$(/opt/mssql-tools18/bin/sqlcmd -h -1 -t 1 -U sa -P "$MYSQL_SA_PASSWORD" -Q "SET NOCOUNT ON; Select SUM(state) from sys.databases" -C TrustServerCertificate=yes) ERRCODE=$? sleep 1 done -if [ $DBSTATUS -ne 0 ] OR [ $ERRCODE -ne 0 ]; then +if [[ $DBSTATUS -ne 0 ]] || [[ $ERRCODE -ne 0 ]]; then echo "SQL Server took more than 60 seconds to start up or one or more databases are not in an ONLINE state" exit 1 fi