File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 4.0.10 2023-11-11 <dave at tiredofit dot ca >
2
+
3
+ ### Changed
4
+ - Change environment variable parsing routines to properly accomodate for Passwords containing '=='
5
+
6
+
1
7
## 4.0.9 2023-11-11 <dave at tiredofit dot ca >
2
8
3
9
### Changed
Original file line number Diff line number Diff line change @@ -160,16 +160,16 @@ bootstrap_variables() {
160
160
161
161
transform_backup_instance_variable() {
162
162
if grep -q "^DB${1}_${2}=" "${backup_instance_vars}" && [ "$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
163
- export "$3"="$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2)"
163
+ export "$3"="$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2- )"
164
164
elif grep -q "^DB_${2}=" "${backup_instance_vars}" && [ "$(grep "^DB_${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
165
165
# Allow old legacy work, perhaps remove old DB_ functionality in future? This should allow for seamless upgrades
166
166
#print_warn "Legacy Variable 'DB_${2}'' detected - Please upgrade your variables as they will be removed in version 4.3.0"
167
- export "$3"="$(grep "^DB_${2}=" "${backup_instance_vars}" | cut -d = -f2)"
167
+ export "$3"="$(grep "^DB_${2}=" "${backup_instance_vars}" | cut -d = -f2- )"
168
168
elif grep -q "^${2}=" "${backup_instance_vars}" && [ "$(grep "^${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
169
169
print_warn "Legacy unsupported variable '${2}' detected - Please upgrade your variables as they will be removed in version 4.3.0"
170
- export "$3"="$(grep "^${2}=" "${backup_instance_vars}" | cut -d = -f2)"
170
+ export "$3"="$(grep "^${2}=" "${backup_instance_vars}" | cut -d = -f2- )"
171
171
elif grep -q "^DEFAULT_${2}=" "${backup_instance_vars}" && [ "$(grep "^DEFAULT_${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
172
- export "$3"="$(grep "^DEFAULT_${2}=" "${backup_instance_vars}" | cut -d = -f2)"
172
+ export "$3"="$(grep "^DEFAULT_${2}=" "${backup_instance_vars}" | cut -d = -f2- )"
173
173
fi
174
174
}
175
175
You can’t perform that action at this time.
0 commit comments