forked from Alex/Pterodactyl-Panel
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
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
|
## check for DB up before starting the panel
|
||||||
echo "Checking database status."
|
echo "Checking database status."
|
||||||
until nc -z -v -w30 $DB_HOST 3306
|
until nc -z -v -w30 $DB_HOST $DB_PORT
|
||||||
do
|
do
|
||||||
echo "Waiting for database connection..."
|
echo "Waiting for database connection..."
|
||||||
# wait for 1 seconds before check again
|
# wait for 1 seconds before check again
|
||||||
|
Loading…
Reference in New Issue
Block a user