-
-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support for deb's config maintenance script #317
feat: Support for deb's config maintenance script #317
Conversation
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
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/goreleaser/nfpm/DXqrArnpVitezepoxXqoWD2HByJi |
Codecov Report
@@ Coverage Diff @@
## master #317 +/- ##
==========================================
+ Coverage 70.13% 70.21% +0.07%
==========================================
Files 9 9
Lines 1135 1138 +3
==========================================
+ Hits 796 799 +3
Misses 209 209
Partials 130 130
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, can you also add it to the docs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
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:
This adds the possibility to include a config script when using debconf like so:
[1] https://manpages.debian.org/jessie/debconf-doc/debconf-devel.7.en.html