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

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