docspell icon indicating copy to clipboard operation
docspell copied to clipboard

[deb] Move configuration to /etc

Open madduck opened this issue 2 years ago • 1 comments

The Debian packaging is very nice already. One change could make it almost perfect: moving the configuration files to /etc, where Debian then actually protects them and helps the administrator preserve local changes.

I think this requires 3 changes:

  1. /etc/docspell in debian/dirs
  2. ucf /usr/share/docspell-restserver/conf/docspell-server.conf /etc/docspell/restserver.conf in debian/postinst
  3. ucfr docspell-restserver /etc/docspell/restserver.conf in debian/postinst
  4. ucf --purge /etc/docspell/restserver.conf in debian/postrm
  5. ucfr --purge docspell-restserver /etc/docspell/restserver.conf in debian/postrm
  6. Modification of the systemd units to pass the config file in ExecStart

… and the same for joex…

I don't quite understand how the Debian package is built, else I would be happy to provide a patch.

madduck avatar Sep 14 '23 11:09 madduck

It's build using a plugin for sbt (the build tool used here), called native packager plugin. Perhaps it has some config options to tweak it into the desired direction.

eikek avatar Sep 14 '23 14:09 eikek