1. Benoit GUERIN
  2. debian-nexus

Source

debian-nexus / debian / nexus-tomcat5.5.postinst

#!/bin/sh -e

#DEBHELPER#

# Script
case "$1" in
	configure)
		if ! dpkg-statoverride --quiet --list /etc/nexus > /dev/null; then
			dpkg-statoverride --quiet --update --add tomcat55 root 0750 /etc/nexus
		fi

		if ! dpkg-statoverride --quiet --list /var/lib/nexus > /dev/null; then
			dpkg-statoverride --quiet --update --add tomcat55 root 0750 /var/lib/nexus
		fi

		if ! dpkg-statoverride --quiet --list /var/log/nexus > /dev/null; then
			dpkg-statoverride --quiet --update --add tomcat55 root 0750 /var/log/nexus
		fi

		invoke-rc.d tomcat5.5 restart
		;;

	*)
		# Other action, nothing to do
		;;
esac