~andreserl/maas/packaging_suggests_power_tools

« back to all changes in this revision

Viewing changes to debian/maas-region-controller-min.postrm

  • Committer: Tarmac
  • Author(s): Andres Rodriguez
  • Date: 2013-12-17 19:42:38 UTC
  • mfrom: (214.1.3 trusty-refactor)
  • Revision ID: tarmac-20131217194238-7e78v2a9796eumkh
[r=smoser][bug=][author=andreserl] Split maas-region-controller into maas-region-controller-min

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
. /usr/share/debconf/confmodule
 
6
 
 
7
RELEASE=`lsb_release -rs` ||  RELEASE=""
 
8
 
 
9
case "$1" in
 
10
    purge)
 
11
        rm -rf /var/log/maas
 
12
        rm -rf /var/lib/maas
 
13
        case $RELEASE in
 
14
            12.04|12.10|13.04)
 
15
                if [ -h /etc/apache2/conf.d/maas-http.conf ]; then
 
16
                    rm -rf /etc/apache2/conf.d/maas-http.conf
 
17
                fi
 
18
                ;;
 
19
            *)
 
20
                if [ -h /etc/apache2/conf-enabled/maas-http.conf ]; then
 
21
                    rm -rf /etc/apache2/conf-enabled/maas-http.conf
 
22
                fi
 
23
                ;;
 
24
        esac
 
25
 
 
26
        # Restarting apache2
 
27
        if [ -x /usr/sbin/invoke-rc.d ]; then
 
28
            invoke-rc.d apache2 restart || true
 
29
        fi
 
30
 
 
31
        # Delete symlink
 
32
        if [ -L /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas ]; then
 
33
            rm -rf /etc/squid-deb-proxy/mirror-dstdomain.acl.d/99-maas
 
34
        fi
 
35
esac
 
36
 
 
37
#DEBHELPER#
 
38
 
 
39
db_stop