eikek / eikek/docspell

[deb] Move configuration to /etc

Open
#2,289 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Elm
Stars
2.3k
Forks
184
Avg merge
8h 2m
Merged PRs (30d)
4

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.