feat(installer): add --install/--uninstall with recorded full rollback
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user