feat(installer): add --install/--uninstall with recorded full rollback

This commit is contained in:
2026-02-25 23:08:02 +00:00
parent 2f269c25b4
commit 9d752ca090
3 changed files with 258 additions and 74 deletions

View File

@@ -32,7 +32,16 @@ You can merge this snippet manually into your `openclaw.json`.
For production-like install with automatic rollback on error:
```bash
./scripts/install-whispergate-openclaw.sh
./scripts/install-whispergate-openclaw.sh --install
```
Uninstall (revert all recorded config changes):
```bash
./scripts/install-whispergate-openclaw.sh --uninstall
# or specify a record explicitly
# RECORD_FILE=~/.openclaw/whispergate-install-records/whispergate-YYYYmmddHHMMSS.json \
# ./scripts/install-whispergate-openclaw.sh --uninstall
```
Environment overrides:
@@ -48,7 +57,10 @@ Environment overrides:
The script:
- writes via `openclaw config set ... --json`
- creates config backup first
- restores backup automatically if any step fails
- restores backup automatically if any install step fails
- writes a change record for every install/uninstall:
- directory: `~/.openclaw/whispergate-install-records/`
- latest pointer: `~/.openclaw/whispergate-install-record-latest.json`
## Notes