]> gitweb.fluxo.info Git - puppet-ikiwiki.git/commitdiff
Explicitly chown instance folder
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Sep 2013 17:33:10 +0000 (14:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 26 Sep 2013 17:33:10 +0000 (14:33 -0300)
templates/deploy.sh.erb
templates/refresh.sh.erb

index 2c7f7890d78dc832695383cf2f8448c7be9f25e0..cc314017b57a08533cb3ae6ca730a2c316bf77a3 100644 (file)
@@ -39,7 +39,6 @@ ikiwiki-makerepo git $SITE/"$INSTANCE"_src_tmp $REPO
 git clone $REPO $SITE/"$INSTANCE"_src
 
 # Fix remotes
-
 cd $SITE/"$INSTANCE"_src
 git remote rm origin
 git remote add origin $REMOTE
index fea8e1496d7e4870a3985426917581926d4aa76c..6ef0b7dffc612a8b41b0a628cd9c5db68da195e7 100644 (file)
@@ -35,7 +35,8 @@ ikiwiki --setup /etc/ikiwiki/$NAME.setup
 
 # Fix permissions
 chown -R $REPO_OWNER.    $REPO
-chown -R $OWNER.$GROUP   $SITE/"$INSTANCE"_src $SITE/$INSTANCE
+chown -R $OWNER.$GROUP   $SITE/"$INSTANCE"_src
+chown -R $OWNER.$GROUP   $SITE/$INSTANCE
 chown $OWNER.$WWW_USER   $SITE/$INSTANCE/ikiwiki.cgi
 chmod 6550               $SITE/$INSTANCE/ikiwiki.cgi
 chown $OWNER.$REPO_OWNER $REPO/hooks/post-update