aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp15
1 files changed, 5 insertions, 10 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index a36cc55..e6eeee2 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -47,12 +47,6 @@ 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":
- creates => "${apache_sites_folder}/${name}/${instance}_src/index.mdwn",
- user => root,
}
if !defined(File["${apache_sites_folder}/${name}/${instance}_src"]) {
@@ -95,10 +89,11 @@ class ikiwiki {
#
file { [ "/var/git/repositories/${name}.git/hooks/post-update",
"${apache_sites_folder}/${name}/${instance}/ikiwiki.cgi" ]:
- ensure => present,
- owner => www-data,
- group => gitosis,
- mode => 6550,
+ ensure => present,
+ owner => www-data,
+ group => gitosis,
+ mode => 6550,
+ require => File["/etc/ikiwiki/$name.setup"],
}
}
'absent': {