From 7b7a6a566974bc35687dfb1516eafd1421301c97 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 29 Mar 2013 13:37:52 -0300 Subject: Use gitolite as the default git implementation --- templates/deploy.sh.erb | 4 ++-- templates/ikiwiki.setup.erb | 4 ++-- templates/refresh.sh.erb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'templates') diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb index 4bbfb43..86150aa 100644 --- a/templates/deploy.sh.erb +++ b/templates/deploy.sh.erb @@ -7,8 +7,8 @@ SITE=$BASE/$NAME CONF="/etc/ikiwiki" WEB_OWNER="www-data" WEB_GROUP="www-data" -REPO_OWNER="gitosis" -REPO_GROUP="gitosis" +REPO_OWNER="<%= scope.lookupvar('ikiwiki:git_implementation') %>" +REPO_GROUP="<%= scope.lookupvar('ikiwiki:git_implementation') %>" REPO="/var/git/repositories/$NAME.git" if [ -z "$INSTANCE" ]; then diff --git a/templates/ikiwiki.setup.erb b/templates/ikiwiki.setup.erb index 1c90988..f9f08bb 100644 --- a/templates/ikiwiki.setup.erb +++ b/templates/ikiwiki.setup.erb @@ -65,7 +65,7 @@ use IkiWiki::Setup::Standard { cgi => 1, wrapper => "<%= scope.lookupvar('ikiwiki::sites_folder') %>/<%= name %>/ikiwiki/ikiwiki.cgi", wrappermode => "06550", - wrappergroup => "gitosis", + wrappergroup => "<%= scope.lookupvar('ikiwiki:git_implementation') %>", }, #{ # # The svn post-commit wrapper. @@ -85,7 +85,7 @@ use IkiWiki::Setup::Standard { # what you want. wrapper => "/var/git/repositories/<%= name %>.git/hooks/post-update", wrappermode => "06550", - wrappergroup => "gitosis", + wrappergroup => "<%= scope.lookupvar('ikiwiki:git_implementation') %>", }, #{ # # The monotone netsync hook. diff --git a/templates/refresh.sh.erb b/templates/refresh.sh.erb index 0b2b796..1071fa8 100644 --- a/templates/refresh.sh.erb +++ b/templates/refresh.sh.erb @@ -7,8 +7,8 @@ SITE=$BASE/$NAME CONF="/etc/ikiwiki" WEB_OWNER="www-data" WEB_GROUP="www-data" -REPO_OWNER="gitosis" -REPO_GROUP="gitosis" +REPO_OWNER="<%= scope.lookupvar('ikiwiki:git_implementation') %>" +REPO_GROUP="<%= scope.lookupvar('ikiwiki:git_implementation') %>" REPO="/var/git/repositories/$NAME.git" if [ -z "$INSTANCE" ]; then -- cgit v1.2.3