From 2382aa5068da1f050698dcafca3a4509bded67cc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 8 Nov 2009 18:05:19 -0200 Subject: Better definition for docroot check --- manifests/init.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}"], } } -- cgit v1.2.3