forked from Wavyzz/dolibarr-docker
${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:
@@ -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 ..."
|
||||
|
||||
Reference in New Issue
Block a user