aboutsummaryrefslogtreecommitdiff
path: root/templates/deploy.sh.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-25 22:05:23 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-25 22:05:23 -0200
commit5f5aa68b1702d90063c5819b2db757428a10d345 (patch)
treeb14d719f906f1142e2d5da5bf43f3e6a5153201c /templates/deploy.sh.erb
parent25c9378cd03d6c8324f80959418049de1ce392ab (diff)
downloadpuppet-ikiwiki-5f5aa68b1702d90063c5819b2db757428a10d345.tar.gz
puppet-ikiwiki-5f5aa68b1702d90063c5819b2db757428a10d345.tar.bz2
Trying to fix permission issue
Diffstat (limited to 'templates/deploy.sh.erb')
-rw-r--r--templates/deploy.sh.erb8
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb
index aac3de7..751264d 100644
--- a/templates/deploy.sh.erb
+++ b/templates/deploy.sh.erb
@@ -7,7 +7,7 @@ SITE=$BASE/$NAME
CONF="/etc/ikiwiki"
WEB_OWNER="www-data"
WEB_GROUP="www-data"
-REPO_OWNER="www-data"
+REPO_OWNER="gitosis"
REPO_GROUP="gitosis"
REPO="/var/git/repositories/$NAME.git"
@@ -37,8 +37,6 @@ EOF
ikiwiki-makerepo git $SITE/"$INSTANCE"_src/ $REPO
touch $REPO/git-daemon-export-ok
( cd $REPO/$NAME.git && git --bare update-server-info )
-ikiwiki --setup /etc/ikiwiki/$NAME.setup
-# Set permissions
-chown -R $WEB_OWNER.$WEB_GROUP $SITE/"$INSTANCE"_src $SITE/$INSTANCE
-chown -R $REPO_OWNER.$REPO_GROUP $REPO
+# Refresh the instance
+ikiwiki-refresh $NAME $INSTANCE