fix(docker): handle cases where DB_PORT is not defined (#3808)
Co-authored-by: Alex <admin@softwarenoob.com>
This commit is contained in:
parent
04656f8da8
commit
49dd719117
1 changed files with 5 additions and 0 deletions
5
.github/docker/entrypoint.sh
vendored
5
.github/docker/entrypoint.sh
vendored
|
@ -55,6 +55,11 @@ else
|
||||||
rm -rf /etc/nginx/http.d/default.conf
|
rm -rf /etc/nginx/http.d/default.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -z $DB_PORT ]]; then
|
||||||
|
echo -e "DB_PORT not specified, defaulting to 3306"
|
||||||
|
DB_PORT=3306
|
||||||
|
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 $DB_PORT
|
until nc -z -v -w30 $DB_HOST $DB_PORT
|
||||||
|
|
Loading…
Reference in a new issue