aboutsummaryrefslogtreecommitdiff
path: root/templates/refresh.sh.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/refresh.sh.erb')
-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