]> gitweb.fluxo.info Git - puppet-git.git/commitdiff
Use 'git' instead of 'gitolite' user (2)
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 2 Jun 2015 21:09:19 +0000 (18:09 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 2 Jun 2015 21:09:19 +0000 (18:09 -0300)
files/git-mass-update-server-info
manifests/daemon.pp

index 53143cf6a1a3b26a8f4190f0c6873020afffdd41..dafa6c0f9bd632cb671552b5e262ba6eaa21aa45 100644 (file)
@@ -9,5 +9,5 @@
 REPOS="/var/git/repositories"
 
 for repo in `ls $REPOS`; do
-  ( cd $REPOS/$repo && su gitolite -c "git update-server-info" )
+  ( cd $REPOS/$repo && su git -c "git update-server-info" )
 done
index 56e0430a5be5d6cb82378d72e9680177de94d145..7dedce9c0155803052654572609044ffdc39eaa8 100644 (file)
@@ -17,7 +17,7 @@ class git::daemon (
   # git-daemon config in inetd
   line { "git-daemon-inetd":
     file   => "/etc/inetd.conf",
-    line   => "git stream tcp nowait ${implementation} /usr/bin/git git daemon --inetd --verbose --base-path=/var/git/repositories /var/git/repositories",
+    line   => "git stream tcp nowait git /usr/bin/git git daemon --inetd --verbose --base-path=/var/git/repositories /var/git/repositories",
     ensure => present,
   }
 }