File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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-)"
You can’t perform that action at this time.
0 commit comments