#!/bin/bash set -e if [ "$1" = "purge" ]; then if [ -f /etc/apache2/conf.d/tcosphpmonitor.conf ]; then rm /etc/apache2/conf.d/tcosphpmonitor.conf fi if [ -d /etc/apache/conf.d/tcosphpmonitor.conf ]; then rm /etc/apache/conf.d/tcosphpmonitor.conf fi rm -rf /var/cache/tcosphpmonitor if [ -x "/etc/init.d/apache2" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d apache2 reload || true else /etc/init.d/apache2 reload || true fi fi if [ -x "/etc/init.d/apache" ]; then if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then invoke-rc.d apache reload || true else /etc/init.d/apache reload || true fi fi fi #DEBHELPER#