From 49dd719117a319543c24a91dc032854a53eb4e98 Mon Sep 17 00:00:00 2001 From: Wuzado <23276409+Wuzado@users.noreply.github.com> Date: Sat, 15 Jan 2022 17:10:19 +0100 Subject: [PATCH] fix(docker): handle cases where DB_PORT is not defined (#3808) Co-authored-by: Alex --- .github/docker/entrypoint.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/docker/entrypoint.sh b/.github/docker/entrypoint.sh index b2460cde9..d3df9c150 100644 --- a/.github/docker/entrypoint.sh +++ b/.github/docker/entrypoint.sh @@ -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