mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
- This will allow us to remove the code needed for force upgrading. Upgrade code can be dropped after a while. - This will ensure that all our users have a single configuration format which will make future testing easier. - We can notify the users of a single overwrite now and be assured that in future, the overwrites of configuration will not happen. - We don't have to monitor for changes to configuration files in future version of the package. - Keep old configuration as a backup file and restore a pristine copy with --reinstall and --force-confmiss. Tests: - Install the app freshly. Configuration file is unchanged, new config snippets are created. App is running. - Install the app with code before new configuration changes. Notice that old configuration format is used. Then switch the code to a branch with current changes. Setup is automatically executed. The package is reinstalled. After re-installation, the main config file is restored. Configuration snippets exist. value of public registration and domain is preserved. Backup file exists with previous configuration contents. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Tested-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>