Permalink
Browse files

backup execute: set HOME variable

Make sure systemd-run can read config files from home dir,
like .my.cnf for MySQL passwords.
  • Loading branch information...
gsanchietti committed Jan 10, 2019
1 parent da2145f commit 1307c7aca743788a9710abc6a454bc8c7120d826
Showing with 1 addition and 1 deletion.
  1. +1 −1 api/system-backup/execute
@@ -74,7 +74,7 @@ case $action in
systemctl reset-failed $unit >/dev/null
fi

systemd-run --unit=$unit /sbin/e-smith/backup-data-wrapper "$(_get name)"
systemd-run --setenv=HOME=/root --unit=$unit /sbin/e-smith/backup-data-wrapper "$(_get name)"
;;

"run-backup-config")

0 comments on commit 1307c7a

Please sign in to comment.