Hermes has no auto-update for itself, and /update from Telegram can leave a launchd gateway offline. Instead, a no-agent Hermes cron job runs `hermes update --check` on Mondays at 09:07 and messages Telegram only when a new stable release is out (a failing check sends an error alert). Adds hermes_cron_jobs (scripts in files/hermes-scripts/, copied to ~/.hermes/scripts/; jobs created when missing) so the deal checker can follow the same pattern. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
538 B
Bash
15 lines
538 B
Bash
#!/bin/bash
|
|
# Hermes cron job (no agent): stdout goes to Telegram, empty stdout sends
|
|
# nothing, a non-zero exit sends an error alert. Silent while Hermes is on
|
|
# the latest stable release.
|
|
out=$("$HOME/.local/bin/hermes" update --check 2>&1) || {
|
|
echo "Hermes update check failed:"
|
|
echo "$out" | tail -5
|
|
exit 1
|
|
}
|
|
grep -q "Up to date" <<<"$out" && exit 0
|
|
echo "Hermes on cogitator-02 has an update:"
|
|
grep -v "^→ Update channel" <<<"$out"
|
|
echo
|
|
echo "Ask Claude to run it (backup, update, checks). Avoid /update in Telegram."
|