Fix environment variable check for Mongo

This commit is contained in:
Dave Conroy
2022-09-20 12:06:13 -07:00
parent a377f570f1
commit 73c4003dc4

View File

@@ -398,7 +398,7 @@ check_availability() {
esac esac
;; ;;
"mongo" ) "mongo" )
if [ "${MONGO_HOST_TYPE,,}" != "atlas" ] || [ -n "${MONGO_CUSTOM_URI}" ]; then if [ "${MONGO_HOST_TYPE,,}" != "atlas" ] || [ -z "${MONGO_CUSTOM_URI}" ]; then
counter=0 counter=0
while ! (nc -z ${DB_HOST} ${DB_PORT}) ; do while ! (nc -z ${DB_HOST} ${DB_PORT}) ; do
sleep 5 sleep 5