Bug#687818: tomcat6: postinst modifies conffile /etc/logrotate.d/tomcat6

tony mancill tmancill at debian.org
Fri Sep 21 04:59:17 UTC 2012


On 09/16/2012 02:48 AM, Andreas Beckmann wrote:
> Package: tomcat6
> Version: 6.0.35-4
> Severity: serious
> Justification: Policy 10.7.3
> User: debian-qa at lists.debian.org
> Usertags: piuparts
> Control: found -1 tomcat6/6.0.35-1+squeeze2
> 
> Hi,
> 
> during a test with piuparts I noticed that your package ships a conffile
> that is modified by the postinst script. This is forbidden by the
> policy, see
> http://www.debian.org/doc/debian-policy/ch-files.html#s-config-files
>   "The easy way to achieve this behavior is to make the configuration
>   file a conffile. [...] This implies that the default version will be
>   part of the package distribution, and must not be modified by the
>   maintainer scripts during installation (or at any other time)."
> 
> The mishandled conffile is /etc/logrotate.d/tomcat6

Hello Andreas,

Thank you for the bug report.  The intention behind modifying the
logrotate.d file in the postinst is because the tomcat6 user isn't known
until the postinst runs.  Obviously it can't be done this way.

Perhaps it is better to assume that the tomcat user is "tomcat6" and add
a note to README.Debian for users who want to run tomcat as a different
user.

Thank you,
tony

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20120920/3657c928/attachment.pgp>


More information about the pkg-java-maintainers mailing list