mirror of
https://github.com/goreleaser/nfpm.git
synced 2026-06-19 08:05:04 +00:00
7701bb950c
* feat: Support for deb's config maintenance script
With debconf, the config script is responsible for asking any questions
necessary to configure a package [1]. Without this, we're forced to ask
questions in postinst, which is against best practices [2].
This commit adds the possibility to include a config script when using
debconf like so:
```yaml
deb:
scripts:
templates: ./my/templates
config: ./my/config
```
[1] https://manpages.debian.org/jessie/debconf-doc/debconf-devel.7.en.html#THE_CONFIG_SCRIPT
[2] https://manpages.debian.org/jessie/debconf-doc/debconf-devel.7.en.html#THE_POSTINST_SCRIPT
* docs: Add info about deb config maintainer script