Skip to content

Commit 49dd719

Browse files
Wuzadotrenutoo
andauthored
fix(docker): handle cases where DB_PORT is not defined (pterodactyl#3808)
Co-authored-by: Alex <admin@softwarenoob.com>
1 parent 04656f8 commit 49dd719

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/docker/entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ else
5555
rm -rf /etc/nginx/http.d/default.conf
5656
fi
5757

58+
if [[ -z $DB_PORT ]]; then
59+
echo -e "DB_PORT not specified, defaulting to 3306"
60+
DB_PORT=3306
61+
fi
62+
5863
## check for DB up before starting the panel
5964
echo "Checking database status."
6065
until nc -z -v -w30 $DB_HOST $DB_PORT

0 commit comments

Comments
 (0)