aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 9816cb5..a36cc55 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -47,11 +47,12 @@ class ikiwiki {
command => "/usr/local/sbin/ikiwiki-refresh $name $instance",
user => root,
refreshonly => true,
+ onlyif => "/bin/sh -c '[ ! -f ${apache_sites_folder}/${name}/${instance}_src/index.mdwn ]'",
}
exec { "/usr/local/sbin/ikiwiki-deploy $name $instance":
- unless => "/bin/sh -c '[ -f ${apache_sites_folder}/${name}/${instance}_src/index.mdwn ]'",
- user => root,
+ creates => "${apache_sites_folder}/${name}/${instance}_src/index.mdwn",
+ user => root,
}
if !defined(File["${apache_sites_folder}/${name}/${instance}_src"]) {