From da9747888a85c01fdea5d02ae375caee91ec1dd2 Mon Sep 17 00:00:00 2001 From: Simon Deziel Date: Tue, 4 Sep 2012 13:41:08 -0400 Subject: Remove the "disable" symlink if any --- manifests/profile.pp | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- cgit v1.2.3