#!/bin/bash # Keeping CFG__STORAGE's comment truthful. # # The value is a location NAME, because names survive a migrate to a host whose # disks are laid out differently and paths do not. But a name alone is useless to # someone reading the config file at 2am with no tooling, so the RESOLVED PATH # rides in the field's comment: # # CFG_NEXTCLOUD_STORAGE=bigdisk # Storage Location - Currently at /mnt/bigdisk/apps/nextcloud [default:Primary|bigdisk:Big disk] # # Two rules keep that from becoming a liability: # # 1. It is a BREADCRUMB, never a source of truth. Nothing reads it to decide # anything — appDir resolves by discovery. A stale one is cosmetic. # 2. It is written ONLY when it changes. The app .config is user-editable and # lives in the container-owned tree, so an unconditional rewrite on every # regen is both file churn and a runFileOp per app per pass. Compare first. # Rebuild the "[default:Primary|: