#!/usr/bin/env bash # # ANAS production installer. Runs ON a Proxmox VE node, as root, from the # untarred release root (the directory containing this script, app/ and # systemd/). # # Design: a read-only PHASE 0 preflight that mutates nothing and aborts early # with a clear summary, followed by a transactional PHASE 1 that records every # completed step so an ERR trap can reverse them and leave the node unchanged. # # ANAS is a guest on the system (PRINCIPLES.md #12): surgical, reversible, # idempotent. A re-run is a clean in-place upgrade (backup -> install -> drop # backup on success), never a duplicate unit or a double