fix(hermesagent): enable gateway user service after hermes-setup

If hermes setup created a user service for the gateway, enable and
start it as the hermes user. Linger is pre-enabled so the service
survives without an interactive session.
This commit is contained in:
Stephen Chin
2026-05-24 16:04:14 -07:00
parent d4154f34e5
commit 5f0200032e

View File

@@ -101,6 +101,9 @@ set -a; source /etc/default/hermes; set +a
chown -R hermes:hermes /home/hermes
chmod 750 /home/hermes
chmod 700 /home/hermes/.hermes
if [[ -f /home/hermes/.config/systemd/user/hermes-gateway.service ]]; then
su - hermes -c 'systemctl --user enable --now hermes-gateway'
fi
echo "Hermes setup complete. File permissions restored."
SETUP
chmod +x /usr/bin/hermes-setup