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...@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
signature.asc
Description: OpenPGP digital signature