diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-07-28 16:28:17 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-07-28 16:28:17 -0300 |
commit | 39a6de3db7edd8e2089de085683dbeb45a684581 (patch) | |
tree | 01a0f9236b2adcc660128eb26812997bddbfa986 | |
parent | c83a4e3ee251617535d1dd432f6bea6792fc5c5a (diff) | |
download | puppet-ikiwiki-39a6de3db7edd8e2089de085683dbeb45a684581.tar.gz puppet-ikiwiki-39a6de3db7edd8e2089de085683dbeb45a684581.tar.bz2 |
Tightening dependencies
-rw-r--r-- | manifests/init.pp | 5 |
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"]) { |