用途:让 OpenClaw 代理保持最新版本,通过一个每晚运行的 cron 任务执行外部 shell 脚本,即使网关重启更新也能继续。
主要能力:设置自动更新(说“set up auto-updater”后,脚本被复制到主目录并创建每日 4 点运行的 cron 任务);修改更新时间(说“change update time to [time]”);立即手动更新(说“update yourself now”);日志位于 ~/openclaw-update.log 用于排查。
为什么要用脚本:代理在网关重启时无法运行命令,所以使用独立于代理运行的外部 shell 脚本。脚本内容为:#!/bin/bash、openclaw gateway stop、openclaw update.run、openclaw gateway start。
限制:资料未提供支持平台、权限要求、失败重试机制等细节。