~ubuntu-branches/ubuntu/quantal/lxc/quantal-201205292108

« back to all changes in this revision

Viewing changes to debian/lxc.postrm

  • Committer: Stéphane Graber
  • Date: 2012-05-29 20:53:55 UTC
  • Revision ID: stgraber@ubuntu.com-20120529205355-glxrffgcknvd9rs9
Don't force remove the apparmor rules in postrm

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
 
22
22
case "$1" in
23
 
    purge)
24
 
        rm -f /etc/apparmor.d/lxc/lxc-default 2>/dev/null || true
25
 
        rm -f /etc/apparmor.d/lxc/lxc-default-with-nesting 2>/dev/null || true
26
 
        rmdir /etc/apparmor.d/lxc 2>/dev/null || true
27
 
        rmdir /etc/apparmor.d/lxc-containers 2>/dev/null || true
28
 
    ;;
29
23
    remove)
30
24
        rm -f /etc/dnsmasq.d/lxc 2>/dev/null || true
31
25
 
32
26
        # Try to restart a potential system wide dnsmasq
33
27
        invoke-rc.d dnsmasq restart 2>/dev/null || true
34
28
    ;;
35
 
    upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
 
29
    purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
36
30
    ;;
37
31
 
38
32
    *)