aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-25 18:55:49 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-25 18:55:49 -0200
commitc61a929c1e7107af9e5dc4de72bb02aed4f10d09 (patch)
tree3fe1905665360d601bee130b96aab49c6a96e678 /templates
parent0223176b485ab880858349623a7f6826c4fea527 (diff)
downloadpuppet-ikiwiki-c61a929c1e7107af9e5dc4de72bb02aed4f10d09.tar.gz
puppet-ikiwiki-c61a929c1e7107af9e5dc4de72bb02aed4f10d09.tar.bz2
Trying new set of ownerships (2)
Diffstat (limited to 'templates')
-rw-r--r--templates/deploy.sh.erb7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb
index 5386729..aac3de7 100644
--- a/templates/deploy.sh.erb
+++ b/templates/deploy.sh.erb
@@ -5,8 +5,9 @@ INSTANCE="$2"
BASE="<%= apache_sites_folder %>"
SITE=$BASE/$NAME
CONF="/etc/ikiwiki"
-OWNER="gitosis"
+WEB_OWNER="www-data"
WEB_GROUP="www-data"
+REPO_OWNER="www-data"
REPO_GROUP="gitosis"
REPO="/var/git/repositories/$NAME.git"
@@ -39,5 +40,5 @@ touch $REPO/git-daemon-export-ok
ikiwiki --setup /etc/ikiwiki/$NAME.setup
# Set permissions
-chown -R $OWNER.$WEB_GROUP $SITE/"$INSTANCE"_src $SITE/$INSTANCE
-chown -R $OWNER.$REPO_GROUP $REPO
+chown -R $WEB_OWNER.$WEB_GROUP $SITE/"$INSTANCE"_src $SITE/$INSTANCE
+chown -R $REPO_OWNER.$REPO_GROUP $REPO