${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.
This commit is contained in:
Wystik-69
2021-02-12 14:24:16 +01:00
committed by GitHub
parent 3dee35f0dc
commit 14f2d2d2bf

View File

@@ -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 ..."