mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-29 16:44:44 +02:00
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
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…
x
Reference in New Issue
Block a user