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:
parent
b9d73afb63
commit
10aaf00e83
1 changed files with 1 additions and 1 deletions
2
.github/docker/entrypoint.sh
vendored
2
.github/docker/entrypoint.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue