Skip to content

Commit 7f455ab

Browse files
committed
Release 4.0.10 - See CHANGELOG.md
1 parent c16add4 commit 7f455ab

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
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.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+
17
## 4.0.9 2023-11-11 <dave at tiredofit dot ca>
28

39
### Changed

install/assets/functions/10-db-backup

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,16 @@ bootstrap_variables() {
160160

161161
transform_backup_instance_variable() {
162162
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-)"
164164
elif grep -q "^DB_${2}=" "${backup_instance_vars}" && [ "$(grep "^DB_${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
165165
# Allow old legacy work, perhaps remove old DB_ functionality in future? This should allow for seamless upgrades
166166
#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-)"
168168
elif grep -q "^${2}=" "${backup_instance_vars}" && [ "$(grep "^${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
169169
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-)"
171171
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-)"
173173
fi
174174
}
175175

0 commit comments

Comments
 (0)