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

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

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