mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-09 12:17:13 +00:00
The drop and truncate helpers ended with `[[ $rc -ne 0 ]] && warn`, which returns 1 when the command succeeded. The per-stack subshell runs on the left of `||`, where set -e is suspended, so its status is that of the last helper: every successful MariaDB drop printed "DB purge failed (rc=1)" and the script exited 1. The helpers now end with an if statement, which returns 0 when nothing failed and still warns when something did. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Container Purge 🗑️
Container-local cleanup helpers under scripts/container/purge/.
These scripts run inside the local infinito container and remove container-local state only. For the canonical Make target index that invokes these helpers, see make.md.
Entry Points 🎯
| Entry point | What it does | Notes |
|---|---|---|
apps.sh |
App-keyed orchestrator that maps $apps to compose entities, drives entity/{db,compose,dir}.sh, and wipes the matching token-store entries via tokens.py. With retire set it also drops the apps from every round inventory under INFINITO_INVENTORY_DIR. |
The host-side wrapper entity.sh docker execs this script. |
web.sh |
Removes nginx and self-signed CA state inside the container. | Called by the local purge wrapper. |
entity/ |
Entity-keyed primitives. | See entity/README.md for the exact scripts. |