> Hello everybody! > > When I'm running lintian on my almost finished package, it tells me: > > E: jailkit: duplicate-updaterc.d-calls-in-postinst jailkit > E: jailkit: duplicate-updaterc.d-calls-in-postrm jailkit > > But why? I do not see anything duplicate there. > You would need to look at the final result ... > Here are the complete files: > > postinst > > #!/bin/sh > #DEBHELPER# > set -e > if ! grep /usr/sbin/jk_chrootsh /etc/shells >/dev/null; then \ > echo "/usr/sbin/jk_chrootsh" >> /etc/shells ;\ > fi > > if [ -x "/etc/init.d/jailkit" ]; then > update-rc.d jailkit defaults >/dev/null > if [ -x /usr/sbin/invoke-rc.d ]; then > invoke-rc.d jailkit start > else > /etc/init.d/jailkit start > fi > fi > > exit 0 > [...] The "#DEBHELPER#" is there for a reason: it's for debhelper to put useful code in there. And that precisely will be this if [ -x "/etc/init.d/jailkit" ]; then ... fi bit. Just use #!/bin/sh set -e if ! grep /usr/sbin/jk_chrootsh /etc/shells >/dev/null; then \ echo "/usr/sbin/jk_chrootsh" >> /etc/shells ;\ fi #DEBHELPER# and you should be fine. Same for your other file. Best, Michael
Attachment:
pgpHLCQ_Aoqkp.pgp
Description: PGP signature