3
# This is an evil hack around the fact that dpkg is unpacking in the
4
# wrong order causing "stop" to fail.
6
if [ -z "$2" ] && [ -e /usr/sbin/apache2 ]; then
7
if [ -x "/etc/init.d/apache2" ]; then
8
if [ -x /usr/sbin/invoke-rc.d ]; then
9
invoke-rc.d apache2 stop || true
11
/etc/init.d/apache2 stop || true
14
chmod -x /usr/sbin/apache2
18
rm -f /var/lib/dpkg/info/apache2-common.postrm