~ubuntu-branches/ubuntu/karmic/rsyslog/karmic-200908151517

« back to all changes in this revision

Viewing changes to debian/rsyslog-pgsql.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2008-04-23 16:46:39 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080423164639-5acmt8a4vpxjgnxw
Tags: 3.14.2-3
* debian/rsyslog-doc.install
  - Fix a typo in the install path of the dia files. Closes: #477489
    Thanks to Justin B Rye for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
# summary of how this script can be called:
 
6
#        * <postrm> `remove'
 
7
#        * <postrm> `purge'
 
8
#        * <old-postrm> `upgrade' <new-version>
 
9
#        * <new-postrm> `failed-upgrade' <old-version>
 
10
#        * <new-postrm> `abort-install'
 
11
#        * <new-postrm> `abort-install' <old-version>
 
12
#        * <new-postrm> `abort-upgrade' <old-version>
 
13
#        * <disappearer's-postrm> `disappear' <overwriter>
 
14
#          <overwriter-version>
 
15
# for details, see http://www.debian.org/doc/debian-policy/ or
 
16
# the debian-policy package
 
17
 
 
18
 
 
19
if [ -f /usr/share/debconf/confmodule ]; then
 
20
        . /usr/share/debconf/confmodule
 
21
fi
 
22
if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then
 
23
        . /usr/share/dbconfig-common/dpkg/postrm
 
24
        dbc_go rsyslog-pgsql $@
 
25
fi
 
26
 
 
27
case "$1" in
 
28
    remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
29
    ;;
 
30
    purge)
 
31
        CONFIGFILE=/etc/rsyslog.d/pgsql.conf
 
32
 
 
33
        for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist;  do
 
34
                rm -f $CONFIGFILE$ext
 
35
        done
 
36
 
 
37
        rm -f $CONFIGFILE
 
38
 
 
39
        if which ucf >/dev/null; then
 
40
                ucf --purge $CONFIGFILE
 
41
        fi
 
42
        if which ucfr >/dev/null; then
 
43
                ucfr --purge rsyslog-pgsql $CONFIGFILE
 
44
        fi
 
45
    ;;
 
46
    *)
 
47
        echo "postrm called with unknown argument \`$1'" >&2
 
48
        exit 1
 
49
    ;;
 
50
esac
 
51
 
 
52
 
 
53
#DEBHELPER#
 
54
 
 
55
exit 0