Skip to content

Commit

Permalink
Release 4.0.12 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Nov 12, 2023
1 parent a9f2d51 commit 65c40ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.0.12 2023-11-12 <dave at tiredofit dot ca>

### Changed
- Allow creating schedulers if _MONGO_CUSTOM_URI is set and _DB_HOST blank


## 4.0.11 2023-11-11 <dave at tiredofit dot ca>

### Changed
Expand Down
5 changes: 3 additions & 2 deletions install/assets/functions/10-db-backup
Original file line number Diff line number Diff line change
Expand Up @@ -1141,10 +1141,11 @@ create_archive() {

create_schedulers() {
if var_true "${DEBUG_CREATE_SCHEDULERS}" ; then debug on; fi

backup() {
bootstrap_variables upgrade BACKUP
local backup_instances=$(printenv | sort | grep -c "^DB[0-9]._HOST")
local backup_instances=$(set -o posix ; set | grep -Pc "^(DB[0-9]._HOST=|.*MONGO_CUSTOM_URI=)")
print_debug "[create_schedulers] Found '${backup_instances}' DB_HOST instances"

if [ -n "${DB_HOST}" ] && [ "${backup_instances}" ]; then
backup_instances=1;
print_debug "[create_schedulers] Detected using old DB_ variables"
Expand Down

0 comments on commit 65c40ca

Please sign in to comment.