From 39a6de3db7edd8e2089de085683dbeb45a684581 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 28 Jul 2010 16:28:17 -0300 Subject: Tightening dependencies --- manifests/init.pp | 5 +++-- 1 file 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"]) { -- cgit v1.2.3