]> gitweb.fluxo.info Git - puppet-apparmor.git/commitdiff
Remove the "disable" symlink if any
authorSimon Deziel <simon.deziel@gmail.com>
Tue, 4 Sep 2012 17:41:08 +0000 (13:41 -0400)
committerSimon Deziel <simon.deziel@gmail.com>
Tue, 4 Sep 2012 17:41:08 +0000 (13:41 -0400)
manifests/profile.pp

index 931a74db291b91aced54d5d7056054920ce40c07..10f6f5122158e43452d42eef769cf5bc4b22fd68 100644 (file)
@@ -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) {