File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
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
+
1
7
## 4.0.8 2023-11-11 <dave at tiredofit dot ca >
2
8
3
9
### Changed
Original file line number Diff line number Diff line change @@ -153,6 +153,11 @@ bootstrap_variables() {
153
153
fi
154
154
##
155
155
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
+
156
161
transform_backup_instance_variable() {
157
162
if grep -q "^DB${1}_${2}=" "${backup_instance_vars}" && [ "$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
158
163
export "$3"="$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2)"
@@ -1738,7 +1743,7 @@ process_limiter() {
1738
1743
}
1739
1744
1740
1745
run_as_user() {
1741
- sudo -u "${DBBACKUP_USER}" $@
1746
+ sudo -Eu "${DBBACKUP_USER}" $@
1742
1747
}
1743
1748
1744
1749
setup_mode() {
You can’t perform that action at this time.
0 commit comments