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.erb16
1 files changed, 6 insertions, 10 deletions
diff --git a/templates/refresh.sh.erb b/templates/refresh.sh.erb
index 6353822..fea8e14 100644
--- a/templates/refresh.sh.erb
+++ b/templates/refresh.sh.erb
@@ -34,13 +34,9 @@ fi
ikiwiki --setup /etc/ikiwiki/$NAME.setup
# Fix permissions
-chown -R $REPO_OWNER. $REPO
-chown -R $OWNER.$GROUP $SITE/"$INSTANCE"_src $SITE/$INSTANCE
-chown $OWNER.$WWW_USER $SITE/$INSTANCE/ikiwiki.cgi
-chmod 6550 $SITE/$INSTANCE/ikiwiki.cgi
-chown $OWNER.$REPO $REPO/hooks/post-update
-chmod 6550 $REPO/hooks/post-update
-
-# Setuid/setgid
-chmod 0755 $REPO/hooks/post-update
-chmod 0550 $SITE/$INSTANCE/ikiwiki.cgi
+chown -R $REPO_OWNER. $REPO
+chown -R $OWNER.$GROUP $SITE/"$INSTANCE"_src $SITE/$INSTANCE
+chown $OWNER.$WWW_USER $SITE/$INSTANCE/ikiwiki.cgi
+chmod 6550 $SITE/$INSTANCE/ikiwiki.cgi
+chown $OWNER.$REPO_OWNER $REPO/hooks/post-update
+chmod 6550 $REPO/hooks/post-update