~ubuntu-branches/ubuntu/lucid/bind9/lucid-updates

« back to all changes in this revision

Viewing changes to debian/bind9.postrm

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2009-08-17 06:53:11 UTC
  • mfrom: (13.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090817065311-n0j851cck62os4bo
Tags: 1:9.6.1.dfsg.P1-3
Build-Depend on the fixed libgeoip-dev.  Closes: #540973

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
 
if [ "$1" = "purge" ]
4
 
then
 
3
if [ "$1" = "purge" ]; then
5
4
        rm -f /etc/bind/rndc.key /etc/default/bind9
6
5
        rmdir /etc/bind >/dev/null 2>&1 || true
7
 
        rm -f /etc/apparmor.d/force-complain/usr.sbin.named >/dev/null 2>&1 || true
 
6
        rm -f /etc/apparmor.d/force-complain/usr.sbin.named >/dev/null 2>&1 || true
8
7
        rmdir /var/lib/bind
 
8
        # delete bind daemon user, if it exists
 
9
        if getent passwd bind > /dev/null ; then
 
10
            echo "Deleting bind user"
 
11
            deluser  --quiet bind > /dev/null || true
 
12
        fi
9
13
fi
10
14
 
11
15
#DEBHELPER#