~yolanda.robla/ubuntu/saucy/clamav/dep-8-tests

« back to all changes in this revision

Viewing changes to debian/clamav-freshclam.postinst.in

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2008-09-18 22:06:59 UTC
  • Revision ID: james.westby@ubuntu.com-20080918220659-40n4cr9qt6yklpzm
Tags: 0.94.dfsg-1ubuntu1
* Follow ApparmorProfileMigration and force apparmor complain mode on some
  upgrades (LP: #264817)
  - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6 for
    clamav-daemon and clamav-freshclam
  - add debian/usr.bin.freshclam and debian/usr.sbin.clamd
  - debian/clamav-(daemon|freshclam).dirs: add etc/apparmor.d/force-complain
  - debian/clamav-(daemon|freshclam).install: install profiles
  - debian/clamav-(daemon|freshclam).preinst: create symlink for
    force-complain/ on pre-feisty upgrades, upgrades where apparmor-profiles
    profile is unchanged (ie non-enforcing) and upgrades where the profile
    doesn't exist.
  - debian/clamav-(daemon|freshclam).postrm: remove symlink in
    force-complain/ on purge.
  - debian/clamav-(daemon|freshclam).postinst.in: reload apparmor
  - update README.Debian with note on Apparmor

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
 
242
242
  chown "$dbowner":adm $FRESHCLAMCONFFILE
243
243
  
 
244
  # Reload AppArmor profile
 
245
  if [ -x /etc/init.d/apparmor ]; then
 
246
    invoke-rc.d apparmor force-reload || true
 
247
  fi
 
248
 
244
249
  if [ "$runas" = 'daemon' ]; then
245
250
    if [ -x "/etc/init.d/clamav-freshclam" ]; then
246
251
      update-rc.d clamav-freshclam defaults >/dev/null