Skip to content

Commit 65c40ca

Browse files
committed
Release 4.0.12 - See CHANGELOG.md
1 parent a9f2d51 commit 65c40ca

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 4.0.12 2023-11-12 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Allow creating schedulers if _MONGO_CUSTOM_URI is set and _DB_HOST blank
5+
6+
17
## 4.0.11 2023-11-11 <dave at tiredofit dot ca>
28

39
### Changed

install/assets/functions/10-db-backup

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,10 +1141,11 @@ create_archive() {
11411141

11421142
create_schedulers() {
11431143
if var_true "${DEBUG_CREATE_SCHEDULERS}" ; then debug on; fi
1144+
11441145
backup() {
1145-
bootstrap_variables upgrade BACKUP
1146-
local backup_instances=$(printenv | sort | grep -c "^DB[0-9]._HOST")
1146+
local backup_instances=$(set -o posix ; set | grep -Pc "^(DB[0-9]._HOST=|.*MONGO_CUSTOM_URI=)")
11471147
print_debug "[create_schedulers] Found '${backup_instances}' DB_HOST instances"
1148+
11481149
if [ -n "${DB_HOST}" ] && [ "${backup_instances}" ]; then
11491150
backup_instances=1;
11501151
print_debug "[create_schedulers] Detected using old DB_ variables"

0 commit comments

Comments
 (0)