use DB_PORT for mysql database connection (#3762)

DB_PORT is the env variable defined for the mysql port into Panel Configuration.
This commit is contained in:
Desjardins Jérôme 2021-12-04 19:25:02 +01:00 committed by GitHub
parent b9d73afb63
commit 10aaf00e83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ fi
## check for DB up before starting the panel
echo "Checking database status."
until nc -z -v -w30 $DB_HOST 3306
until nc -z -v -w30 $DB_HOST $DB_PORT
do
echo "Waiting for database connection..."
# wait for 1 seconds before check again