aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-11 19:32:24 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-11 19:32:24 -0300
commitda153bfe959b110278bf18ee384a202698674a75 (patch)
treecc5a72eb705d1d52dcc1f514a017c0d98cc877d9
parent79a15295e104ca7d33cc2b471cc2472da5b34dc8 (diff)
downloadpuppet-ikiwiki-da153bfe959b110278bf18ee384a202698674a75.tar.gz
puppet-ikiwiki-da153bfe959b110278bf18ee384a202698674a75.tar.bz2
More permission fixes
-rw-r--r--templates/refresh.sh.erb10
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/refresh.sh.erb b/templates/refresh.sh.erb
index b5a9bdf..fbf1dfd 100644
--- a/templates/refresh.sh.erb
+++ b/templates/refresh.sh.erb
@@ -33,10 +33,12 @@ fi
ikiwiki --setup /etc/ikiwiki/$NAME.setup
# Fix permissions
-chown -R $REPO_OWNER.$REPO_GROUP $REPO
-chown -R $WEB_OWNER.$WEB_GROUP $SITE/"$INSTANCE"_src $SITE/$INSTANCE
-chown $WEB_OWNER.$WWW_USER $SITE/$INSTANCE/ikiwiki.cgi
-chmod 6550 $SITE/$INSTANCE/ikiwiki.cgi
+chown -R $REPO_OWNER. $REPO
+chown -R $WEB_OWNER.$WEB_GROUP $SITE/"$INSTANCE"_src $SITE/$INSTANCE
+chown $WEB_OWNER.$WWW_USER $SITE/$INSTANCE/ikiwiki.cgi
+chmod 6550 $SITE/$INSTANCE/ikiwiki.cgi
+chown $WEB_OWNER.$REPO $REPO/hooks/post-update
+chmod 6550 $REPO/hooks/post-update
# Setuid/setgid
chmod 0755 $REPO/hooks/post-update