Source

debian-nexus / debian / nexus-tomcat6.postinst

Full commit
#!/bin/sh -e

#DEBHELPER#

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

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

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

		invoke-rc.d tomcat6 restart
		;;

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