fix(hermesagent): set XDG_RUNTIME_DIR in hermes .profile for SSH access

This commit is contained in:
Stephen Chin
2026-05-10 14:10:53 -07:00
parent 9919be3dac
commit 43cc3c83d2

View File

@@ -22,6 +22,7 @@ NODE_VERSION="22" setup_nodejs
msg_info "Creating Hermes User"
useradd -m -s /bin/bash hermes
loginctl enable-linger hermes
echo 'export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:-/run/user/$(id -u)}"' >>/home/hermes/.profile
msg_ok "Created Hermes User"
msg_warn "WARNING: This script will run an external installer from a third-party source (https://hermes-agent.nousresearch.com/)."