daps icon indicating copy to clipboard operation
daps copied to clipboard

Change location of /etc/daps/config to /usr/etc/daps/config on openSUSE

Open tomschr opened this issue 5 years ago • 1 comments

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:

  1. Look for /etc/daps/config (this file is already there)
  2. 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/

tomschr avatar Sep 03 '19 09:09 tomschr

Also see https://en.opensuse.org/openSUSE:Packaging_UsrEtc

fsundermeyer avatar Nov 08 '23 13:11 fsundermeyer