~ubuntu-branches/ubuntu/jaunty/clamav/jaunty-backports

« back to all changes in this revision

Viewing changes to debian/clamav-daemon.postrm

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-10-02 15:36:00 UTC
  • mfrom: (10.1.6 sid)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20101002153600-2tx3vki1u55cdrjy
Tags: 0.96.3+dfsg-2ubuntu0.10.04.1
Microversion update to 0.96.3 for Lucid (LP: #653738)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#DEBHELPER#
22
22
 
 
23
# remove AppArmor files
 
24
if [ "$1" = "purge" ]; then
 
25
    rm -f "/etc/apparmor.d/disable/usr.sbin.clamd" || true
 
26
    rm -f "/etc/apparmor.d/force-complain/usr.sbin.clamd" || true
 
27
    rm -f "/etc/apparmor.d/local/usr.sbin.clamd" || true
 
28
    rmdir /etc/apparmor.d/local 2>/dev/null || true
 
29
fi
 
30
 
23
31
case "$1" in
24
32
  purge)
25
33
  if [ -x "/usr/bin/ucf" ]; then
29
37
      rm -f $LOGROTATE_FILE
30
38
    fi
31
39
  fi
32
 
 
33
 
  rm -f /etc/apparmor.d/force-complain/usr.sbin.clamd >/dev/null 2>&1 || true
 
40
  for dir in /etc/clamav/ /var/log/clamav /var/lib/clamav/; do
 
41
    if [ -d "$dir" ]; then
 
42
      rmdir "$dir" --ignore-fail-on-non-empty || true
 
43
    fi
 
44
  done
34
45
  ;;
35
46
  remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
36
47
  ;;