aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/refresh.sh.erb4
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/refresh.sh.erb b/templates/refresh.sh.erb
index e158f58..fd20ff0 100644
--- a/templates/refresh.sh.erb
+++ b/templates/refresh.sh.erb
@@ -27,3 +27,7 @@ chown -R $WEB_OWNER.$WEB_GROUP $SITE/"$INSTANCE"_src $SITE/$INSTANCE
chown -R $REPO_OWNER.$REPO_GROUP $REPO
chown $WEB_OWNER.$REPO_GROUP $REPO/hooks/post-update
chown $WEB_OWNER.$REPO_GROUP $SITE/$INSTANCE/ikiwiki.cgi
+
+# Setuid/setgid
+chmod 6550 $REPO/hooks/post-update
+chmod 6550 $SITE/$INSTANCE/ikiwiki.cgi