mcpField
A
auto-updater

auto-updater

github.com/teylersfAgent 工作流01.2k 次安装36 周前更新
代码仓库

关于 auto-updater

auto-updater 是用于 OpenClaw 的技能,通过独立 shell 脚本和夜间 cron 任务安排更新。脚本独立于网关运行,因此网关重启期间也能执行更新。

主要功能

  1. 01独立的 shell 更新脚本
  2. 02每日凌晨 4 点运行的 cron 任务
  3. 03可调整更新时间
  4. 04手动触发更新
  5. 05通过更新日志排查问题

适用场景

  1. 01安排 OpenClaw 定期更新
  2. 02在网关重启期间执行更新
  3. 03更改计划更新时间
  4. 04更新异常后检查日志

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/teylersf/openclaw-auto-updater --skill auto-updater

安装后在 Claude Code 中输入/auto-updater确认已加载。

附带文件README.mdupdate-openclaw.sh

详细介绍

Auto-Updater 技能

此技能通过运行外部 shell 脚本的夜间 cron 任务,让 OpenClaw 保持最新状态,因此即使网关重启,更新也能正常运行。

快速设置

要启用自动更新,请说“设置自动更新”,我会:

  1. 将更新脚本复制到你的主文件夹
  2. 创建一个每天凌晨 4 点运行脚本的 cron 任务

为什么使用脚本?

网关重启期间,Agent 无法运行命令。我们使用可独立于 Agent 运行的独立 shell 脚本。

更新脚本

#!/bin/bash
# OpenClaw Auto-Updater

openclaw gateway stop
openclaw update.run
openclaw gateway start

更改更新时间

告诉我“将更新时间改为 [time]”,我会更新 cron 计划。

手动更新

说“立即更新”,我会立即运行脚本。

故障排除

查看日志文件:~/openclaw-update.log

评论

支持 Markdown