feat(ops): include openclaw update status in infra sentinel
This commit is contained in:
@@ -98,6 +98,19 @@ else
|
||||
add_next "Run: openclaw security audit --json"
|
||||
fi
|
||||
|
||||
if "$OPENCLAW_BIN" update status >"$ARTIFACT_DIR/openclaw-update-status.txt" 2>"$ARTIFACT_DIR/openclaw-update-status.err"; then
|
||||
if grep -Eqi 'update available|outdated|new version|available:' "$ARTIFACT_DIR/openclaw-update-status.txt"; then
|
||||
add_watch "P2 OpenClaw update available"
|
||||
mark_p2
|
||||
add_next "Review release notes, then run safe update workflow"
|
||||
else
|
||||
add_watch "P4 OpenClaw update status checked"
|
||||
fi
|
||||
else
|
||||
add_watch "P3 OpenClaw update status check failed"
|
||||
add_next "Run: openclaw update status"
|
||||
fi
|
||||
|
||||
# 2) Backup freshness from minio backup log
|
||||
if [[ -f "$BACKUP_LOG" ]]; then
|
||||
last_key="$(grep 'Backup complete:' "$BACKUP_LOG" | tail -n1 | sed -E 's#.*workspace-backups/([0-9]{8}T[0-9]{6}Z).*#\1#' || true)"
|
||||
|
||||
Reference in New Issue
Block a user