diff options
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"] + } } |