diff options
author | andreas <andreas@immerda.ch> | 2009-02-09 19:29:37 +0000 |
---|---|---|
committer | andreas <andreas@immerda.ch> | 2009-02-09 19:29:37 +0000 |
commit | 504eab561a57b3c5e9bfb70c70f06bdeea64163a (patch) | |
tree | 0be8957a5e77f41c58e972f3a0eccbc0c093f6f7 /manifests | |
parent | 7e428072a22269d2a7ffe2955a2139a6bdb71bf7 (diff) |
chown exec after git-clone
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/defines.pp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/defines.pp b/manifests/defines.pp index 892b51e..169f34f 100644 --- a/manifests/defines.pp +++ b/manifests/defines.pp @@ -59,8 +59,11 @@ define git::clone( exec {"git-clone": command => "git-clone --no-hardlinks $git_repo $projectroot", creates => "$projectroot/.git", - user => $runas_user, - group => $runas_group, + user => root } + exec {"git-clone-chown": + command => "chown -R $runas_user.$runas_group $projectroot", + require => Exec["git-clone"] + } } |