From 434e170ee3234374c0be1b4a9230e8a484f25324 Mon Sep 17 00:00:00 2001 From: Stephen Chin Date: Sat, 9 May 2026 10:27:37 -0700 Subject: [PATCH] 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. --- ct/hermesagent.sh | 10 ++-------- install/hermesagent-install.sh | 10 +++++++--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/ct/hermesagent.sh b/ct/hermesagent.sh index cd71e1b3..8c3ce1e9 100644 --- a/ct/hermesagent.sh +++ b/ct/hermesagent.sh @@ -52,16 +52,10 @@ start build_container description -msg_ok "Completed successfully!\n" +msg_ok "Completed Successfully!\n" echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" echo -e "${INFO}${YW} Connect via SSH and configure your LLM provider:${CL}" echo -e "${TAB}${GATEWAY}${BGN}ssh root@${IP}${CL}" echo -e "${TAB}${BGN}su - hermes${CL}" echo -e "${TAB}${BGN}hermes setup${CL}" -echo -e "${INFO}${YW} API Server (OpenAI-compatible):${CL}" -echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:8642/v1${CL}" -echo -e "${INFO}${YW} API key stored at:${CL}" -echo -e "${TAB}${BGN}/home/hermes/.hermes/.env${CL}" -echo -e "${INFO}${YW} Web Dashboard (via SSH tunnel):${CL}" -echo -e "${TAB}${BGN}ssh -fNL 9119:localhost:9119 root@${IP}${CL}" -echo -e "${TAB}${BGN}Then open: http://localhost:9119${CL}" +echo -e "${INFO}${YW} Service details are shown on each SSH login.${CL}" diff --git a/install/hermesagent-install.sh b/install/hermesagent-install.sh index 3e4d58bd..2f8aee7e 100644 --- a/install/hermesagent-install.sh +++ b/install/hermesagent-install.sh @@ -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