From: Simon Deziel Date: Tue, 4 Sep 2012 17:41:08 +0000 (-0400) Subject: Remove the "disable" symlink if any X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=da9747888a85c01fdea5d02ae375caee91ec1dd2;p=puppet-apparmor.git Remove the "disable" symlink if any --- diff --git a/manifests/profile.pp b/manifests/profile.pp index 931a74d..10f6f51 100644 --- a/manifests/profile.pp +++ b/manifests/profile.pp @@ -70,6 +70,12 @@ define apparmor::profile ( notify => Exec["aa-enable-${name}"], } + # Remove the "disable" symlink if any + file { "${apparmor_d}/disable/${name}": + ensure => absent, + notify => Exec["aa-enable-${name}"], + } + if ($local_source == true) { $real_local_source = "${default_base}/local/${name}" } elsif ($local_source == false) {