~lamont/maas/packaging.install-note

« back to all changes in this revision

Viewing changes to debian/maas-dhcp.postrm

  • Committer: MAAS Lander
  • Author(s): Blake Rouse
  • Date: 2016-04-12 21:18:19 UTC
  • mfrom: (481.1.1 fix-1569568)
  • Revision ID: maas_lander-20160412211819-6rmz06otivom2ama
[r=andreserl][bug=1569568][author=blake-rouse] Allow reloading of apparmor profile to fail on postrm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
   dhcpd_prof="/etc/apparmor.d/usr.sbin.dhcpd"
7
7
   if [ -f "${dhcpd_prof}" ] &&
8
8
      command -v apparmor_parser >/dev/null 2>&1; then
9
 
      apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}"
 
9
      apparmor_parser --replace --write-cache --skip-read-cache "${dhcpd_prof}" || true
10
10
   fi
11
11
   if [ "$1" = "purge" ]; then
12
12
      rm -rf /var/lib/maas/dhcp