Skip to content

Commit

Permalink
use DB_PORT for mysql database connection (#3762)
Browse files Browse the repository at this point in the history
DB_PORT is the env variable defined for the mysql port into Panel Configuration.
  • Loading branch information
jewome62 authored Dec 4, 2021
1 parent b9d73af commit 10aaf00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 10aaf00

Please sign in to comment.