<div dir="ltr"><div>Package: tomcat8</div><div>Version: <span style="color:rgb(0,0,0);font-family:monospace">8.5.16-1</span></div><div><br></div><div>Hi,</div><div>I'm forwarding this as it was reported to Ubuntu but affecting both of us.</div><div>In the postinst there is a snippet already considering debconf for names:<br></div><br>        db_get tomcat8/username && TOMCAT8_USER="$RET" || TOMCAT8_USER="tomcat8"<br>       db_get tomcat8/groupname && TOMCAT8_GROUP="$RET" || TOMCAT8_GROUP="tomcat8"<br>[...]<br>       chown -R $TOMCAT8_USER:adm /var/log/tomcat8 /var/cache/tomcat8<br>       chmod 750 /var/log/tomcat8 /var/cache/tomcat8<br><br>Not sure if that can be reasonably combined, but would it make sense to you to combine that with dpkg-statoverride [1] somehow?<div><br></div><div>That would be to allow a user to override those permissions and retain them across update/installs/reinstalls.</div><div><br></div><div>[1]: <a href="https://manpages.debian.org/wheezy/dpkg/dpkg-statoverride.8.en.html">https://manpages.debian.org/wheezy/dpkg/dpkg-statoverride.8.en.html</a><br><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div>
</div></div>