~ubuntu-branches/ubuntu/saucy/clamav/saucy-backports

« back to all changes in this revision

Viewing changes to debian/clamav-daemon.postrm

  • Committer: Package Import Robot
  • Author(s): Scott Kitterman
  • Date: 2014-07-15 01:08:10 UTC
  • mfrom: (0.35.47 sid)
  • Revision ID: package-import@ubuntu.com-20140715010810-ru66ek4fun2iseba
Tags: 0.98.4+dfsg-2~ubuntu13.10.1
No-change backport to saucy (LP: #1341962)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
case "$1" in
32
32
  purge)
33
 
  LOGROTATE_FILE='/etc/logrotate.d/clamav-daemon'
34
 
  if [ -x "/usr/bin/ucf" ]; then
35
 
    ucf -p $LOGROTATE_FILE || true
36
 
  fi
37
 
  if [ -e "$LOGROTATE_FILE" ]; then
38
 
    rm -f $LOGROTATE_FILE
39
 
  fi
 
33
  UCFLIST="/etc/logrotate.d/clamav-daemon \
 
34
    /etc/clamav/clamd.conf"
 
35
  for i in $UCFLIST; do
 
36
    if [ -x "/usr/bin/ucf" ]; then
 
37
      ucf -p $i || true
 
38
    fi
 
39
    if [ -e "$i" ]; then
 
40
      rm -f $i
 
41
    fi
 
42
  done
 
43
  rm -f /etc/clamav/clamd.conf.dpkg-old /etc/clamav/clamd.conf.ucf*
40
44
  ;;
41
45
  remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
42
46
  ;;