update-module.sh
Updates a TAPPaaS module safely with snapshot, testing, and automatic rollback.
Usage
update-module.sh [options] <module-name>
Options
| Option | Description |
--force | Proceed even if pre-update test fails |
--debug | Show Debug-level messages |
--silent | Suppress Info-level messages |
What it does
- Creates a pre-update VM snapshot (rollback safety net)
- Runs
test-module.sh pre-update — aborts if tests fail (unless --force) - Runs the module's
pre-update.sh hook (if present) - Iterates
dependsOn and calls each provider's update-service.sh - Calls the module's own
update.sh - Runs
test-module.sh post-update — rolls back on fatal failure
Exit codes
| Code | Meaning |
0 | Update succeeded, all tests passed |
1 | Update completed but post-update test failed (non-fatal) |
2 | Fatal error (rollback attempted if snapshot exists) |
Examples
update-module.sh vaultwarden
update-module.sh --force litellm
update-module.sh --debug openwebui
See Also