fix(hermesagent): slim down login hint to su and dashboard tunnel only
This commit is contained in:
@@ -96,18 +96,16 @@ EOF
|
|||||||
systemctl enable -q --now hermes-dashboard
|
systemctl enable -q --now hermes-dashboard
|
||||||
msg_ok "Created Dashboard Service"
|
msg_ok "Created Dashboard Service"
|
||||||
|
|
||||||
msg_info "Configuring Login Guidance"
|
msg_info "Configuring Login Hints"
|
||||||
cat <<'HINT' >/etc/profile.d/hermes-hint.sh
|
cat <<'HINT' >/etc/profile.d/hermes-hint.sh
|
||||||
if [[ "$(id -u)" -eq 0 ]]; then
|
if [[ "$(id -u)" -eq 0 ]]; then
|
||||||
echo " Run 'su - hermes' to manage Hermes Agent and profiles."
|
echo " Run 'su - hermes' to manage Hermes Agent and profiles."
|
||||||
fi
|
fi
|
||||||
LOCAL_IP=$(hostname -I 2>/dev/null | awk '{print $1}')
|
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 " Dashboard: ssh -fNL 9119:localhost:9119 root@${LOCAL_IP}"
|
||||||
echo " then open http://localhost:9119"
|
echo " then open http://localhost:9119"
|
||||||
HINT
|
HINT
|
||||||
msg_ok "Configured Login Guidance"
|
msg_ok "Configured Login Hints"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|||||||
Reference in New Issue
Block a user