fix(docker): handle cases where DB_PORT is not defined (#3808)

Co-authored-by: Alex <admin@softwarenoob.com>
This commit is contained in:
Wuzado 2022-01-15 17:10:19 +01:00 committed by GitHub
parent 04656f8da8
commit 49dd719117
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,11 @@ else
rm -rf /etc/nginx/http.d/default.conf
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
echo "Checking database status."
until nc -z -v -w30 $DB_HOST $DB_PORT