Support persistent custom configuration for config-site.php as implemented in ns8-piler PR #77.
Currently, custom admin changes to config-site.php are lost whenever the file is regenerated by module updates or UI saves. This feature allows an override template config-site.php.local to persist admin changes.
Proposed solution
- Check for a
templates/config-site.php.local template in the module state directory
- If present, use it instead of the base template when generating config-site.php
- Scaffold a
templates/ directory for local overrides
- If not present, keep current behavior
Alternative solutions
- Manually re-apply custom changes after updates (not ideal)
- Freeze config file from auto-generation (not flexible)
Additional context
See ns8-sogo persistent template logic for precedent. Improves admin experience and reduces config drift.
See also
thank @pagaille
Support persistent custom configuration for
config-site.phpas implemented in ns8-piler PR #77.Currently, custom admin changes to config-site.php are lost whenever the file is regenerated by module updates or UI saves. This feature allows an override template
config-site.php.localto persist admin changes.Proposed solution
templates/config-site.php.localtemplate in the module state directorytemplates/directory for local overridesAlternative solutions
Additional context
See ns8-sogo persistent template logic for precedent. Improves admin experience and reduces config drift.
See also
thank @pagaille