fix(hermesagent): remove redundant guards from hermes-setup; restore completion message wording
This commit is contained in:
@@ -66,7 +66,7 @@ description
|
|||||||
|
|
||||||
msg_ok "Completed successfully!\n"
|
msg_ok "Completed successfully!\n"
|
||||||
echo -e "${CREATING}${GN}Hermes Agent setup has been successfully initialized!${CL}"
|
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 "${TAB}${BGN}hermes-setup${CL}"
|
||||||
echo -e "${INFO} When prompted to install the gateway service, choose 'user service'.${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}"
|
echo -e "${INFO}${YW} Key for Hermes API Server stored in:${CL}"
|
||||||
|
|||||||
@@ -96,14 +96,6 @@ msg_ok "Created Dashboard Service"
|
|||||||
msg_info "Creating Setup Helper"
|
msg_info "Creating Setup Helper"
|
||||||
cat <<'SETUP' >/usr/bin/hermes-setup
|
cat <<'SETUP' >/usr/bin/hermes-setup
|
||||||
#!/usr/bin/env bash
|
#!/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
|
set -a; source /etc/default/hermes; set +a
|
||||||
/home/hermes/.local/bin/hermes setup
|
/home/hermes/.local/bin/hermes setup
|
||||||
chown -R hermes:hermes /home/hermes
|
chown -R hermes:hermes /home/hermes
|
||||||
|
|||||||
Reference in New Issue
Block a user