~ubuntu-branches/ubuntu/precise/rsyslog/precise

« back to all changes in this revision

Viewing changes to debian/rsyslog.postrm

  • Committer: Colin Watson
  • Date: 2010-11-19 18:11:25 UTC
  • Revision ID: cjwatson@canonical.com-20101119181125-yfpxmr7p2gxvegbn
Restore maintainer script code to install
/etc/rsyslog.d/50-default.conf, and refer to it again from rsyslog.conf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
        [ -f /etc/logrotate.d/rsyslog ] && mv -f /etc/logrotate.d/rsyslog /etc/logrotate.d/rsyslog.disabled
7
7
fi
8
8
 
 
9
if [ "$1" = "purge" ]; then
 
10
        if which ucfr >/dev/null; then
 
11
                ucfr --purge rsyslog /etc/rsyslog.d/50-default.conf
 
12
        fi
 
13
        if which ucf >/dev/null; then
 
14
                ucf --purge /etc/rsyslog.d/50-default.conf
 
15
        fi
 
16
        if [ -d /etc/rsyslog.d ]; then
 
17
                rm -f /etc/rsyslog.d/50-default.conf
 
18
                rmdir --ignore-fail-on-non-empty /etc/rsyslog.d
 
19
        fi
 
20
fi
 
21
 
9
22
if [ "$1" = "purge" -o "$1" = "dissappear" ]; then
10
23
        [ -f /etc/logrotate.d/rsyslog.disabled ] && rm -f /etc/logrotate.d/rsyslog.disabled
11
24
fi