aboutsummaryrefslogtreecommitdiff
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
parent0223176b485ab880858349623a7f6826c4fea527 (diff)
downloadpuppet-ikiwiki-c61a929c1e7107af9e5dc4de72bb02aed4f10d09.tar.gz
puppet-ikiwiki-c61a929c1e7107af9e5dc4de72bb02aed4f10d09.tar.bz2
Trying new set of ownerships (2)
-rw-r--r--manifests/init.pp2
-rw-r--r--templates/deploy.sh.erb7
2 files changed, 5 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 7c51f8d..3be6bdb 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -41,7 +41,7 @@ class ikiwiki {
case $ensure {
'present': {
exec { "ikiwiki --setup /etc/ikiwiki/$name.setup":
- user => gitosis,
+ user => root,
refreshonly => true,
}
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