From da153bfe959b110278bf18ee384a202698674a75 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Apr 2013 19:32:24 -0300 Subject: More permission fixes --- templates/refresh.sh.erb | 10 ++++++---- 1 file 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 -- cgit v1.2.3