summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/defines.pp6
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
+ }
}