From 79c3f3a5712e39541053f41f9c1a369828550208 Mon Sep 17 00:00:00 2001 From: andreas Date: Mon, 16 Feb 2009 08:55:11 +0000 Subject: extended: correct initial perms for git cloned dirs --- manifests/defines.pp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 + } } -- cgit v1.2.3