fix(hermesagent): source /etc/default/hermes via setsid; drop inline env vars and HERMES_HOME
This commit is contained in:
@@ -45,10 +45,10 @@ function update_script() {
|
||||
msg_ok "Stopped Services"
|
||||
|
||||
msg_info "Updating ${APP}"
|
||||
$STD env \
|
||||
HOME=/home/hermes \
|
||||
HERMES_HOME=/home/hermes/.hermes \
|
||||
$STD setsid --wait bash -c '
|
||||
set -a; source /etc/default/hermes; set +a
|
||||
/home/hermes/.local/bin/hermes update --yes
|
||||
'
|
||||
chown -R hermes:hermes /home/hermes
|
||||
msg_ok "Updated ${APP}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user