Final Availability check

This commit is contained in:
Dave Conroy
2022-09-20 13:51:54 -07:00
parent 8706d3a91c
commit c4dbf53ced
2 changed files with 4 additions and 2 deletions

View File

@@ -399,7 +399,9 @@ check_availability() {
esac
;;
"mongo" )
if [ "${MONGO_HOST_TYPE,,}" != "atlas" ] || [ -z "${MONGO_CUSTOM_URI}" ]; then
if [ "${MONGO_HOST_TYPE,,}" = "atlas" ] || [ -z "${MONGO_CUSTOM_URI}" ]; then
print_debug "Skipping Connectivity Check"
else
counter=0
while ! (nc -z ${DB_HOST} ${DB_PORT}) ; do
sleep 5