Skip to content

Commit c16add4

Browse files
committed
Release 4.0.9 - See CHANGELOG.md
1 parent d5769b1 commit c16add4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
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.9 2023-11-11 <dave at tiredofit dot ca>
2+
3+
### Changed
4+
- Fix issue with quotes being wrapped around _PASS variables
5+
6+
17
## 4.0.8 2023-11-11 <dave at tiredofit dot ca>
28

39
### Changed

install/assets/functions/10-db-backup

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ bootstrap_variables() {
153153
fi
154154
##
155155

156+
if grep -qo ".*_PASS='.*'" "${backup_instance_vars}"; then
157+
print_debug "[bootstrap_variables] [backup_init] Found _PASS variable with quotes"
158+
sed -i "s|_PASS='\(.*\)'|_PASS=\1|g" "${backup_instance_vars}"
159+
fi
160+
156161
transform_backup_instance_variable() {
157162
if grep -q "^DB${1}_${2}=" "${backup_instance_vars}" && [ "$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
158163
export "$3"="$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2)"
@@ -1738,7 +1743,7 @@ process_limiter() {
17381743
}
17391744

17401745
run_as_user() {
1741-
sudo -u "${DBBACKUP_USER}" $@
1746+
sudo -Eu "${DBBACKUP_USER}" $@
17421747
}
17431748

17441749
setup_mode() {

0 commit comments

Comments
 (0)