Skip to content

Feature: Persistent custom config-site.php in ns8-piler #7963

@stephdl

Description

@stephdl

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions