I'm also not familiar with dpkg-statoverride, but the pattern seems to be
something along those lines:
- if there is no override for path /foo/bar, call dpkg-statoverride with
--update
Example from cron's postinst:
# Fixup crontab binary for new group 'crontab'.
if ! dpkg-statoverride --list /usr/bin/crontab > /dev/null ; then
dpkg-statoverride --update --add root crontab 2755 /usr/bin/crontab
fi
Example from softhsm2:
set_perms() {
if ! dpkg-statoverride --list "$4" >/dev/null; then
dpkg-statoverride --update --add "$@"
fi
}
...
# set correct permissions on softhsm directories
set_perms root softhsm 0750 /etc/softhsm
set_perms root softhsm 02770 /var/lib/softhsm
set_perms root softhsm 02770 /var/lib/softhsm/tokens
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1673016
Title:
Tomcat7 post installation script does not honor dpkg-statsoverride
entries
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tomcat8/+bug/1673016/+subscriptions
--
Ubuntu-server-bugs mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs