Index: modules/web/manifests/server.pp |
=================================================================== |
--- a/modules/web/manifests/server.pp |
+++ b/modules/web/manifests/server.pp |
@@ -102,7 +102,7 @@ |
path => ["/usr/bin/", "/bin/"], |
require => Package['mercurial'], |
timeout => 0, |
- onlyif => "test ! -d /opt/cms", |
+ creates => "/opt/cms/.hg/hgrc", |
} |
exec {"fetch_repo": |
@@ -111,7 +111,7 @@ |
require => Package['mercurial'], |
user => www, |
timeout => 0, |
- onlyif => "test ! -d /home/www/${repository}", |
+ creates => "/home/www/${repository}/.hg/hgrc", |
} |
file {'/var/www': |