From 8ec33f650271c95c7a02983b7950ad7276fae189 Mon Sep 17 00:00:00 2001 From: mh Date: Tue, 13 Aug 2013 13:57:02 +0200 Subject: be more efficient when cleaning up the webdirectory --- manifests/vhost/webdir.pp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'manifests/vhost') diff --git a/manifests/vhost/webdir.pp b/manifests/vhost/webdir.pp index c9729f0..507ab25 100644 --- a/manifests/vhost/webdir.pp +++ b/manifests/vhost/webdir.pp @@ -68,6 +68,11 @@ define apache::vhost::webdir( } case $ensure { absent: { + exec{"cleanup_webdir_${real_path}": + command => "rm -rf ${real_path}", + onlyif => "test -d ${real_path}", + before => File[$real_path], + } file{$real_path: ensure => absent, purge => true, -- cgit v1.2.3