Overview
- Skill Key
- aliahmadaziz/openclaw-safe-upgrade
- Author
- aliahmadaziz
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/aliahmadaziz/openclaw-safe-upgrade
- Latest Commit SHA
- b5c3d31751c0d81bfa49979b3c311a725e2b3a59
Safe OpenClaw upgrade with instant rollback. Use when user says "upgrade openclaw", "update openclaw", "check for updates", or any request to upgrade/update the OpenClaw installation. NOT for config changes (use gateway config.patch). NOT for skill updates (use clawhub).
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 upgrade 技能。 若已安装,则直接安装 upgrade 技能。
# OpenClaw Safe Upgrade Single atomic command. Auto-rollbacks on ANY failure. Survives the gateway restart it triggers. ## Script ```bash # From an agent session — ALWAYS set escape flag (ensures script survives gateway restart) _UPGRADE_FORCE_ESCAPE=1 bash skills/upgrade/scripts/safe-upgrade.sh # Force upgrade even if already on latest _UPGRADE_FORCE_ESCAPE=1 bash skills/upgrade/scripts/safe-upgrade.sh --force # Safe read-only checks (no escape needed) bash skills/upgrade/scripts/safe-upgrade.sh --check # Pre-flight only bash skills/upgrade/scripts/safe-upgrade.sh --rollback # Manual rollback ``` ## What Happens (one command, 10 steps) 1. **Cgroup escape**: re-execs via `systemd-run --user --scope` so gateway stop can't kill the script 2. Pre-flight: version check, disk space, breaking changes 3. Backup: installation tarball, config, cron jobs, acpx customizations 4. `npm i -g openclaw@latest` 5. Restore acpx config (ACP agent customizations survive upgrades) 6. Gateway restart (process-isolated: stop + start, survives script's own lifecycle) 7. Wait for gateway health (configurable timeout) → **auto-rollback if fails** 8. Wait for WhatsApp reconnect (non-fatal timeout) 9. Verify: correct version + cron count preserved → **auto-rollback if fails** 10. Record result → optional golden snapshot → cleanup backup If ANY critical check fails, the script **automatically rolls back** — restores install, config, crons, and acpx. Trap handler catches unexpected exits during critical phases. ## Agent Workflow 1. Run `--check` first. Review output with the user. 2. Inform user: "Launching upgrade — I'll go offline during gateway restart." 3. Run the upgrade: ```bash _UPGRADE_FORCE_ESCAPE=1 bash skills/upgrade/scripts/safe-upgrade.sh ``` **Do NOT pipe the output** (no `| tee`, no `2>&1 | cat`). The script writes to `/tmp/upgrade-live.log`. 4. **The current session will end** when the gateway restarts. This is expected. 5. After restart, the new ses...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.