Source

debian-nexus / debian / nexus-tomcat7.postrm

Full commit
#!/bin/sh -e

#DEBHELPER#

# Script
case "$1" in
	remove|upgrade)
		if [ -x /usr/sbin/dpkg-statoverride ]; then
			if dpkg-statoverride --quiet --list /etc/nexus > /dev/null ; then
				dpkg-statoverride --quiet --force --remove /etc/nexus
			fi

			if dpkg-statoverride --quiet --list /var/lib/nexus > /dev/null ; then
				dpkg-statoverride --quiet --force --remove /var/lib/nexus
			fi

			if dpkg-statoverride --quiet --list /var/log/nexus > /dev/null ; then
				dpkg-statoverride --quiet --force --remove /var/log/nexus
			fi
		fi

		invoke-rc.d tomcat7 restart
		;;

	*)
		;;
esac