~ubuntu-branches/ubuntu/intrepid/nagios3/intrepid-security

« back to all changes in this revision

Viewing changes to debian/nagios3-common.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2008-04-08 20:39:11 UTC
  • Revision ID: james.westby@ubuntu.com-20080408203911-urwlvtfpv0k6vpep
Tags: 3.0.1-1
* New upstream version (Closes: #475041)
* Move cfg_dir=/etc/nagios3/conf.d to the end of nagios.cfg to
  allow overwriting variables from nagios.cfg in conf.đ/
* Disable external_commands in nagios.cfg as they are now enabled by 
  default

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
# some shorthands for sanity
 
4
en="/etc/nagios3"
 
5
enc="/etc/nagios3/conf.d"
 
6
usn="/usr/share/nagios3"
 
7
 
 
8
case "$1" in
 
9
  remove)
 
10
        ;;
 
11
  purge)
 
12
        for file in $en/resource.cfg /var/log/nagios3 /var/run/nagios3 \
 
13
                    /var/lib/nagios3 /var/lib/nagios3/spool \
 
14
                    /var/lib/nagios3/spool/checkresults \
 
15
                    /var/cache/nagios3 /var/lib/nagios3/rw; do
 
16
            dpkg-statoverride --force --remove $file 2>/dev/null || true
 
17
        done
 
18
        rm -rf /var/run/nagios3 /var/log/nagios3 /var/lib/nagios3 \
 
19
               /var/cache/nagios3
 
20
        rm -f /etc/nagios3/htpasswd.users
 
21
        rm -f /etc/nagios3/apache2.conf
 
22
        rm -f /etc/nagios3/conf.d/host-gateway_nagios3.cfg
 
23
        #rm -f /etc/nagios3/conf.d/extcommands_nagios3.cfg
 
24
        if which ucf >/dev/null 2>&1; then
 
25
                ucf --purge /etc/nagios3/apache2.conf
 
26
                ucf --purge /etc/nagios3/conf.d/host-gateway_nagios3.cfg
 
27
                #ucf --purge /etc/nagios3/conf.d/extcommands_nagios3.cfg
 
28
        fi
 
29
    ;;
 
30
esac
 
31
 
 
32
#DEBHELPER#