From 65af3f13d276de1b0bfe0ee900d65d4f290a952a Mon Sep 17 00:00:00 2001 From: "Brian \"bits\" Olsen" Date: Fri, 15 Mar 2024 13:49:15 -0500 Subject: [PATCH] Set default for ports --- scripts/entrypoint.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 1bb0e94..b1b5dee 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -10,6 +10,7 @@ MYSQL='mysql' POSTGRES='postgres' if [ "${METASTORE_TYPE}" = "${MYSQL}" ]; then + METASTORE_DB_HOSTNAME=${METASTORE_DB_HOSTNAME:-3306} # Default to 3306 echo "Waiting for database on ${METASTORE_DB_HOSTNAME} to launch on ${METASTORE_DB_PORT} ..." while ! nc -z ${METASTORE_DB_HOSTNAME} ${METASTORE_DB_PORT}; do sleep 1 @@ -23,6 +24,7 @@ if [ "${METASTORE_TYPE}" = "${MYSQL}" ]; then fi if [ "${METASTORE_TYPE}" = "${POSTGRES}" ]; then + METASTORE_DB_HOSTNAME=${METASTORE_DB_HOSTNAME:-5432} # Default to 5432 echo "Waiting for database on ${METASTORE_DB_HOSTNAME} to launch on ${METASTORE_DB_PORT} ..." while ! nc -z ${METASTORE_DB_HOSTNAME} ${METASTORE_DB_PORT}; do sleep 1