docspell
docspell copied to clipboard
[deb] Move configuration to /etc
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:
/etc/docspellindebian/dirsucf /usr/share/docspell-restserver/conf/docspell-server.conf /etc/docspell/restserver.confindebian/postinstucfr docspell-restserver /etc/docspell/restserver.confindebian/postinstucf --purge /etc/docspell/restserver.confindebian/postrmucfr --purge docspell-restserver /etc/docspell/restserver.confindebian/postrm- 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.
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.