diff options
author | andreas <andreas@immerda.ch> | 2009-02-16 08:55:11 +0000 |
---|---|---|
committer | andreas <andreas@immerda.ch> | 2009-02-16 08:55:11 +0000 |
commit | 79c3f3a5712e39541053f41f9c1a369828550208 (patch) | |
tree | 4b7c178eca273d42000120f4a2e08852cf6c6fcf | |
parent | cbae560745a93de60b42a376e677ed3b42cc80f9 (diff) |
extended: correct initial perms for git cloned dirs
-rw-r--r-- | manifests/defines.pp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/manifests/defines.pp b/manifests/defines.pp index f12bff9..ab5375d 100644 --- a/manifests/defines.pp +++ b/manifests/defines.pp @@ -60,11 +60,15 @@ define git::clone( command => "git-clone --no-hardlinks $git_repo $projectroot", creates => "$projectroot/.git", user => root, - notify => Exec["git-clone-chown"] + notify => [Exec["git-clone-chown"],Exec["git-clone-chmod"]] } exec {"git-clone-chown": command => "chown -R ${cloneddir_user}:${cloneddir_group} $projectroot", refreshonly => true } + exec {"git-clone-chmod": + command => "chmod -R o-rwx $projectroot", + refreshonly => true + } } |