Mac: weekly Hermes update notice on Telegram
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>
This commit is contained in:
1 parent
eff53f2503
commit
2d23b9c470
5 files changed
+60
No files matched your search
@@ -0,0 +1,14 @@
|
||||
#!/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."
|
||||
Reference in new issue
Block a user