~lutostag/ubuntu/utopic/maas/1.5.2

« back to all changes in this revision

Viewing changes to debian/maas.postrm

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-03-15 18:14:08 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120315181408-zgl94hzo0x4n99an
Tags: 0.1+bzr295+dfsg-0ubuntu2
* debian/patches:
  - 01-fix-database-settings.patch: Update to set PSERV_URL.
  - 02-pserv-config.patch: Set port to 8001.
* debian/maas.postinst: Run maas-import-isos on install.
* debian/control: Depends on rabbitmq-server.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh -e
2
 
 
3
 
if [ "$1" = "remove" ] || [ "$1" = "purge" ] ; then
4
 
 
5
 
        # Handle custom squid removal
6
 
        if [ -e /etc/squid3/squid.conf.orig ] ; then
7
 
                if [ -h /etc/squid3/squid.conf ]; then
8
 
                        rm -f /etc/squid3/squid.conf
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
. /usr/share/debconf/confmodule
 
6
 
 
7
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
 
8
        . /usr/share/dbconfig-common/dpkg/postrm.pgsql
 
9
        dbc_go maas $@
 
10
fi
 
11
 
 
12
case "$1" in
 
13
        purge)
 
14
                rm -rf /var/log/maas
 
15
                if [ -h /etc/apache2/conf.d/maas-http.conf ]; then
 
16
                        rm -rf /etc/apache2/conf.d/maas-http.conf
9
17
                fi
10
 
                cp /etc/squid3/squid.conf.orig /etc/squid3/squid.conf
11
 
        fi
12
 
 
13
 
        invoke-rc.d squid3 restart
14
 
 
15
 
fi
 
18
 
 
19
esac
16
20
 
17
21
#DEBHELPER#
 
22
 
18
23
exit 0