diff options
-rw-r--r-- | manifests/init.pp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index c0362ed..0580042 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -120,9 +120,10 @@ class apache { recurse => false, } } - if !defined(Exec["/bin/mkdir -p ${docroot}"]) { + if !defined(Exec["check_docroot_${docroot}"]) { # Ensure parent folder exist exec { "/bin/mkdir -p ${docroot}": + unless => "/bin/sh -c '[ -e ${docroot} ]'", before => File["${docroot}"], } } |