Skip to content

Commit b956bd8

Browse files
committed
Release 3.4.2 - See CHANGELOG.md
1 parent 7bda69b commit b956bd8

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 3.4.2 2022-09-19 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Skip availability check for Mongo Atlas connections
5+
6+
17
## 3.4.1 2022-09-13 <dave at tiredofit dot ca>
28

39
### Added

install/assets/functions/10-db-backup

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,14 @@ check_availability() {
375375
esac
376376
;;
377377
"mongo" )
378-
counter=0
379-
while ! (nc -z ${DB_HOST} ${DB_PORT}) ; do
380-
sleep 5
381-
(( counter+=5 ))
382-
print_warn "Mongo Host '${DB_HOST}' is not accessible, retrying.. ($counter seconds so far)"
383-
done
378+
if [ "${MONGO_HOST_TYPE,,}" != "atlas" ] ; then
379+
counter=0
380+
while ! (nc -z ${DB_HOST} ${DB_PORT}) ; do
381+
sleep 5
382+
(( counter+=5 ))
383+
print_warn "Mongo Host '${DB_HOST}' is not accessible, retrying.. ($counter seconds so far)"
384+
done
385+
fi
384386
;;
385387
"mysql" )
386388
counter=0

0 commit comments

Comments
 (0)