Happy new year
[pazpar2-moved-to-github.git] / debian / pazpar2-apache2.postrm
1 #!/bin/sh -e
2
3 case "$1" in
4     purge|remove)
5         WEBSERVERS="apache2"
6         for apache in $WEBSERVERS; do
7             if [ -f "/etc/$apache/conf.d/pazpar2" ]; then
8                 echo "Removing pazpar2 configuration file for $apache.."
9                 rm -f /etc/$apache/conf.d/pazpar2
10                 if [ -f "/var/run/$apache.pid" ]; then
11                     invoke-rc.d $apache reload
12                 fi
13             fi
14         done
15         ;;
16     upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
17         ;;
18
19     *)
20         echo "postrm called with unknown argument \`$1'" >&2
21         exit 1
22 esac
23
24
25
26 # dh_installdeb will replace this with shell code automatically
27 # generated by other debhelper scripts.
28
29 #DEBHELPER#
30
31 exit 0
32