aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-25 19:15:35 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-25 19:15:35 -0200
commitc547fbda55bd8b7fdd2acc190ee2f7cf758e6986 (patch)
tree660fe190ddb8e123117489bd8d73bf6a632f3a76 /manifests
parentc61a929c1e7107af9e5dc4de72bb02aed4f10d09 (diff)
downloadpuppet-ikiwiki-c547fbda55bd8b7fdd2acc190ee2f7cf758e6986.tar.gz
puppet-ikiwiki-c547fbda55bd8b7fdd2acc190ee2f7cf758e6986.tar.bz2
Ensuring post-update hook is setuid www-data
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp3
1 files changed, 1 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 3be6bdb..65dc2cb 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -86,12 +86,11 @@ class ikiwiki {
# See http://ikiwiki.info/rcs/git/
# http://ikiwiki.info/forum/multi-user_setup_of_ikiwiki__44___gitosis_and_apache2_in_Debian_Sid/
#
- # TODO: ensure the post-update hook is setuid.
- #
file { "/var/git/repositories/${name}.git/hooks/post-update":
ensure => present,
owner => www-data,
group => gitosis,
+ mode => 4550,
}
}
}