Codebase-wide audit pass: fixed real bugs (SSH hangs missing BatchMode, local-outside-function no-ops, variable name collisions, a truncated ratio calc, wrong state-dir path, DARK vs NO_INTERNET drift, and more), then pulled logic that was duplicated across multiple scripts — arr cleanup safety gates, docker restart ordering, container maintenance stop/restart, watchdog state-file helpers, partnership role resolution, cert expiry checks, remote node discovery, and TMDB discovery scoring — into common.sh so each now has a single implementation.
Configurations/
Runtime home for the live conf files. These are gitignored — never committed.
| File | Source |
|---|---|
master.conf |
Seeded from Deployment/master.conf.template on first install |
host1.conf |
Seeded from Deployment/host.conf.template on first install |
host2.conf |
Seeded from Deployment/host.conf.template on first install |
Templates and tooling live in Deployment/:
Deployment/host.conf.template— canonical template for new host confsDeployment/master.conf.template— canonical template for master.confDeployment/conf_upgrade.sh— merges schema changes into existing confsDeployment/conf_populate.sh— auto-detects and fills arr keys on first run