From 518445525683dc61a099c1b2b9b84a611c44ba4b Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Apr 2013 21:01:48 -0300 Subject: Cleanup and permission fixes --- templates/refresh.sh.erb | 16 ++++++---------- 1 file 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 -- cgit v1.2.3