mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
Fix environment variable check for Mongo
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user