fix(hermesagent): move service details from CT footer to MOTD

Trims the verbose 12-line CT footer to the standard pattern plus
essential first-run setup steps. API server, API key, and dashboard
SSH tunnel details are now displayed on every SSH login via
/etc/profile.d/hermes-hint.sh instead.

Addresses PR feedback from CrazyWolf13.
This commit is contained in:
Stephen Chin
2026-05-09 10:27:37 -07:00
parent a0bffe7a4f
commit 434e170ee3
2 changed files with 9 additions and 11 deletions

View File

@@ -91,12 +91,16 @@ systemctl enable -q --now hermes-dashboard
msg_ok "Created Dashboard Service"
msg_info "Configuring Login Guidance"
cat <<'EOF' >/etc/profile.d/hermes-hint.sh
cat <<'HINT' >/etc/profile.d/hermes-hint.sh
if [[ "$(id -u)" -eq 0 ]]; then
echo " Run 'su - hermes' to manage Hermes Agent and profiles."
echo " To auto-switch on login: echo 'exec su - hermes' >> /root/.bash_profile"
fi
EOF
LOCAL_IP=$(hostname -I 2>/dev/null | awk '{print $1}')
echo " API Server (OpenAI-compatible): http://${LOCAL_IP}:8642/v1"
echo " API key: /home/hermes/.hermes/.env"
echo " Dashboard: ssh -fNL 9119:localhost:9119 root@${LOCAL_IP}"
echo " then open http://localhost:9119"
HINT
msg_ok "Configured Login Guidance"
motd_ssh