Merge pull request #1859 from steveonjava/feat/hermesagent-setup-helper

Feat/hermesagent setup helper
This commit is contained in:
CanbiZ (MickLesk)
2026-05-24 23:04:11 +02:00
committed by GitHub
3 changed files with 18 additions and 5 deletions

View File

@@ -93,10 +93,23 @@ EOF
systemctl enable -q --now hermes-dashboard
msg_ok "Created Dashboard Service"
msg_info "Creating Setup Helper"
cat <<'SETUP' >/usr/bin/hermes-setup
#!/usr/bin/env bash
set -a; source /etc/default/hermes; set +a
/home/hermes/.local/bin/hermes setup
chown -R hermes:hermes /home/hermes
chmod 750 /home/hermes
chmod 700 /home/hermes/.hermes
echo "Hermes setup complete. File permissions restored."
SETUP
chmod +x /usr/bin/hermes-setup
msg_ok "Created Setup Helper"
msg_info "Configuring Login Hints"
cat <<'HINT' >/etc/profile.d/hermes-hint.sh
if [[ "$(id -u)" -eq 0 ]]; then
echo " Use 'su - hermes' to switch to the hermes user for running Hermes Agent."
echo " Run 'hermes-setup' to configure your model provider and gateway server."
fi
HINT
msg_ok "Configured Login Hints"