Prva inačica za buster
[php-apc-cn.git] / debian / postrm
1 #!/bin/sh
2 # postrm script for monit-cn
3 #
4 # see: dh_installdeb(1)
5
6 set -e
7
8 # summary of how this script can be called:
9 #        * <postrm> `remove'
10 #        * <postrm> `purge'
11 #        * <old-postrm> `upgrade' <new-version>
12 #        * <new-postrm> `failed-upgrade' <old-version>
13 #        * <new-postrm> `abort-install'
14 #        * <new-postrm> `abort-install' <old-version>
15 #        * <new-postrm> `abort-upgrade' <old-version>
16 #        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
17 # for details, see http://www.debian.org/doc/debian-policy/ or
18 # the debian-policy package
19
20 case "$1" in
21     purge)
22       # continue below
23     ;;
24
25     *)
26         exit 0
27     ;;
28 esac
29
30 # import CN-functions
31 . /usr/share/carnet-tools/functions.sh
32
33 CONF=/etc/php5/conf.d/apc.ini
34
35 # remove us from inittab
36 echo "CN: Removing APC tuneups"
37 cp-update --comment ';' -r php-apc-cn "$CONF"
38
39 # reload Apache
40 if apache2ctl configtest 2>/dev/null; then
41     echo "CN: Reloading Apache..."
42     invoke-rc.d apache2 force-reload || true
43 else
44     echo "CN: Your Apache2 configuration is either broken or nonexistant"
45 fi
46
47 # dh_installdeb will replace this with shell code automatically
48 # generated by other debhelper scripts.
49
50 #DEBHELPER#
51
52 exit 0