mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 13:23:12 +01:00
Alternate way of solving Host check
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user