daps
daps copied to clipboard
Change location of /etc/daps/config to /usr/etc/daps/config on openSUSE
Problem Description
Thorsten Kukuk presented the result of the discussion on the opensuse-packaging mailinglist about configuration files in /etc
and /usr/etc
.
The reason for change from /etc/ to /usr/etc/ was to make it easier to update configuration files and to solve problems with atomic updates (transactional updates on openSUSE).
I'm not entirely sure if we need to take any actions here, but maybe we need to adapt the spec file, daps, and/or its configuration file.
Expected behavior
DAPS needs to:
- Look for
/etc/daps/config
(this file is already there) - If this file does not exist, load
/usr/etc/daps/config
.
That means, we need:
- [ ] Create an additional directory
/usr/etc/daps/
in our spec file. - [ ] Extend DAPS to read its configuration files from several locations (which is already possible to some extend).
Notes
- We should be aware, that
/usr/etc
should not be modified by the admin as it can be read-only. - https://github.com/thkukuk/atomic-updates_and_etc/
Also see https://en.opensuse.org/openSUSE:Packaging_UsrEtc