fix(hermesagent): source /etc/default/hermes via setsid; drop inline env vars and HERMES_HOME

This commit is contained in:
Stephen Chin
2026-05-10 15:39:22 -07:00
parent c685754144
commit 46746538a0
2 changed files with 6 additions and 7 deletions

View File

@@ -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}"