mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
- The configuration module defaults to values in the production configuration file. - If the file is found, it is read and the read values overwrite the defaults. If the file is not found, no error is raised. This allows us to not ship the configuration file. User may create the configuration if they want to change the defaults. This eases upgrades when configuration is edited. This also make FreedomBox robust to deployments where /etc/ is not populated by default such as OSTree. It is also a good practice for daemons as followed by the likes of systemd. - If the file partly populated only the values read override the defaults and the remaining values don't change. This allows the user to write simpler configuration file. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>