Alternate way of solving Host check

This commit is contained in:
Dave Conroy
2022-09-21 09:28:01 -07:00
parent 9d8cfd69cb
commit 789aa96113
2 changed files with 3 additions and 1 deletions

View File

@@ -23,3 +23,5 @@ SIZE_VALUE=${SIZE_VALUE:-"bytes"}
SKIP_AVAILABILITY_CHECK=${SKIP_AVAILABILITY_CHECK:-"FALSE"}
SPLIT_DB=${SPLIT_DB:-"TRUE"}
TEMP_LOCATION=${TEMP_LOCATION:-"/tmp/backups"}
if [ -n "${MONGO_CUSTOM_URI}" ]; then MONGO_DB_TYPE="atlas" ; fi

View File

@@ -399,7 +399,7 @@ check_availability() {
esac
;;
"mongo" )
if [ "${MONGO_HOST_TYPE,,}" = "atlas" ] || [ -z "${MONGO_CUSTOM_URI}" ]; then
if [ "${MONGO_HOST_TYPE,,}" = "atlas" ] ; then
print_debug "Skipping Connectivity Check"
else
counter=0