summaryrefslogtreecommitdiffstats
path: root/debian/postrm
blob: ce939f94da4e4337f0a9403681c082c6603bcc5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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#