mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
cfg: Read configuration from .d files and multiple locations
- Read configuration files from three different locations. /usr/share/freedombox/freedombox.config, /etc/plinth/plinth.config and /etc/freedombox/freedombox.conf. Later listed has higher priority. - Provide backward compatibility for /etc/plinth/plinth.config files. With lower priority than /etc/freedombox but higher priority than /usr/share/. - Read sorted files from config.d directories with the same suffix as original configuration file. Parse them by priority. This allows administrator/programs to drop in configuration bits without worry about editing files. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
823735729b
commit
aaa306aef5
5 files changed
+46
-7
No files matched your search
@@ -0,0 +1,2 @@
|
||||
[Misc]
|
||||
box_name = FreedomBox01
|
||||
@@ -0,0 +1,2 @@
|
||||
[Misc]
|
||||
box_name = FreedomBox02
|
||||
@@ -0,0 +1,2 @@
|
||||
[Misc]
|
||||
box_name = FreedomBox03
|
||||
Reference in new issue
Block a user