config: Add new component for managing drop-in /etc/ config files

- Use two separate strategies: one to symlink from /etc to files in /usr/ and
two to copy files from /usr to /etc. The latter is needed for some rare cases
where symlinks don't work because the daemon runs in a chrooted environment.

- Update tutorial and reference sections in developer documentation.

Tests:

- Unit tests works and are comprehensive.

- Using the component in apps works.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2023-06-05 20:27:23 -04:00
1 parent 9cc5ecc909
commit 598e1e3b4a
9 files changed
+470 -12

No files matched your search

+7 -4
View File
@@ -22,10 +22,13 @@ in a step-by-step manner::
├─ urls.py
├─ views.py
├─┬ data/
│ ├─┬ etc/
│ │ └─┬ apache2/
│ │ └─┬ conf-available/
│ │ └─ transmission-freedombox.conf
│ ├─┬ usr/
│ │ └─┬ share/
│ │ └─┬ freedombox/
│ │ └─┬ etc/
│ │ └─┬ apache2/
│ │ └─┬ conf-available/
│ │ └─ transmission-plinth.conf
│ └─┬ usr/
│ └─┬ share/
│ └─┬ freedombox/