From c61a929c1e7107af9e5dc4de72bb02aed4f10d09 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 25 Jan 2010 18:55:49 -0200 Subject: Trying new set of ownerships (2) --- manifests/init.pp | 2 +- templates/deploy.sh.erb | 7 ++++--- 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 -- cgit v1.2.3