From 14f2d2d2bf140354842dbf80a40391628ef0fb65 Mon Sep 17 00:00:00 2001 From: Wystik-69 <63404022+Wystik-69@users.noreply.github.com> Date: Fri, 12 Feb 2021 14:24:16 +0100 Subject: [PATCH] ${DOLI_DB_HOST_PORT} line 60 (#45) -P ${DOLI_DB_HOST_PORT} is required in order to check the database connection, just tested it, without the script is stuck on Checking de SQL connection. --- docker-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-run.sh b/docker-run.sh index fb1084c..c9c0b8f 100755 --- a/docker-run.sh +++ b/docker-run.sh @@ -57,7 +57,7 @@ function waitForDataBase() { r=1 while [[ ${r} -ne 0 ]]; do - mysql -u ${DOLI_DB_USER} --protocol tcp -p${DOLI_DB_PASSWORD} -h ${DOLI_DB_HOST} -e "status" > /dev/null 2>&1 + mysql -u ${DOLI_DB_USER} --protocol tcp -p${DOLI_DB_PASSWORD} -h ${DOLI_DB_HOST} -P ${DOLI_DB_HOST_PORT} -e "status" > /dev/null 2>&1 r=$? if [[ ${r} -ne 0 ]]; then echo "Waiting that SQL database is up ..."