Skip to content

Commit 1e8ccf4

Browse files
committed
Release 4.0.13 - See CHANGELOG.md
1 parent 65c40ca commit 1e8ccf4

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
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.13 2023-11-12 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Check for any quotes if using MONGO_CUSTOM_URI and remove
5+
6+
17
## 4.0.12 2023-11-12 <dave at tiredofit dot ca>
28

39
### Changed

install/assets/functions/10-db-backup

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ bootstrap_variables() {
158158
sed -i "s|_PASS='\(.*\)'|_PASS=\1|g" "${backup_instance_vars}"
159159
fi
160160

161+
if grep -qo "MONGO_CUSTOM_URI='.*'" "${backup_instance_vars}"; then
162+
print_debug "[bootstrap_variables] [backup_init] Found _MONGO_CUSTOM_URI variable with quotes"
163+
sed -i "s|MONGO_CUSTOM_URI='\(.*\)'|MONGO_CUSTOM_URI=\1|g" "${backup_instance_vars}"
164+
fi
165+
161166
transform_backup_instance_variable() {
162167
if grep -q "^DB${1}_${2}=" "${backup_instance_vars}" && [ "$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
163168
export "$3"="$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2-)"

0 commit comments

Comments
 (0)