Skip to content

Commit

Permalink
Release 4.0.9 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Nov 11, 2023
1 parent d5769b1 commit c16add4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 4.0.9 2023-11-11 <dave at tiredofit dot ca>

### Changed
- Fix issue with quotes being wrapped around _PASS variables


## 4.0.8 2023-11-11 <dave at tiredofit dot ca>

### Changed
Expand Down
7 changes: 6 additions & 1 deletion install/assets/functions/10-db-backup
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ bootstrap_variables() {
fi
##

if grep -qo ".*_PASS='.*'" "${backup_instance_vars}"; then
print_debug "[bootstrap_variables] [backup_init] Found _PASS variable with quotes"
sed -i "s|_PASS='\(.*\)'|_PASS=\1|g" "${backup_instance_vars}"
fi

transform_backup_instance_variable() {
if grep -q "^DB${1}_${2}=" "${backup_instance_vars}" && [ "$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2)" != "unset" ]; then
export "$3"="$(grep "^DB${1}_${2}=" "${backup_instance_vars}" | cut -d = -f2)"
Expand Down Expand Up @@ -1738,7 +1743,7 @@ process_limiter() {
}

run_as_user() {
sudo -u "${DBBACKUP_USER}" $@
sudo -Eu "${DBBACKUP_USER}" $@
}

setup_mode() {
Expand Down

0 comments on commit c16add4

Please sign in to comment.