fix(hermesagent): remove redundant guards from hermes-setup; restore completion message wording

This commit is contained in:
Stephen Chin
2026-05-24 13:18:43 -07:00
parent c80dbaa5e6
commit 965d0ff1d4
2 changed files with 1 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ description
msg_ok "Completed successfully!\n"
echo -e "${CREATING}${GN}Hermes Agent setup has been successfully initialized!${CL}"
echo -e "${INFO}${YW} Configure your model provider and gateway server:${CL}"
echo -e "${INFO}${YW} Configure your model provider and gateway server inside the container:${CL}"
echo -e "${TAB}${BGN}hermes-setup${CL}"
echo -e "${INFO} When prompted to install the gateway service, choose 'user service'.${CL}"
echo -e "${INFO}${YW} Key for Hermes API Server stored in:${CL}"

View File

@@ -96,14 +96,6 @@ msg_ok "Created Dashboard Service"
msg_info "Creating Setup Helper"
cat <<'SETUP' >/usr/bin/hermes-setup
#!/usr/bin/env bash
if [[ "$(id -u)" -ne 0 ]]; then
echo "Error: hermes-setup must be run as root." >&2
exit 1
fi
if [[ ! -x /home/hermes/.local/bin/hermes ]]; then
echo "Error: Hermes Agent is not installed." >&2
exit 1
fi
set -a; source /etc/default/hermes; set +a
/home/hermes/.local/bin/hermes setup
chown -R hermes:hermes /home/hermes