Files
computer-playbook/scripts/container/purge
kevinveenbirkenbachandClaude Opus 5.5 12a627d693 fix(purge): stop reporting a successful database drop as failed
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>
2026-10-08 23:36:33 +02:00
..
…

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.