Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsondatadev authored Mar 15, 2024
1 parent 65af3f1 commit 8590027
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ MYSQL='mysql'
POSTGRES='postgres'

if [ "${METASTORE_TYPE}" = "${MYSQL}" ]; then
METASTORE_DB_HOSTNAME=${METASTORE_DB_HOSTNAME:-3306} # Default to 3306
METASTORE_DB_PORT=${METASTORE_DB_PORT:-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
Expand All @@ -24,7 +24,7 @@ if [ "${METASTORE_TYPE}" = "${MYSQL}" ]; then
fi

if [ "${METASTORE_TYPE}" = "${POSTGRES}" ]; then
METASTORE_DB_HOSTNAME=${METASTORE_DB_HOSTNAME:-5432} # Default to 5432
METASTORE_DB_PORT=${METASTORE_DB_PORT:-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
Expand Down

0 comments on commit 8590027

Please sign in to comment.