summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2009-02-09 19:33:44 +0000
committerandreas <andreas@immerda.ch>2009-02-09 19:33:44 +0000
commit5eb82a88c7b1df3dc0b5e00ba5c4cba2a6500693 (patch)
treeabd802945ad12e9ee1f81967b42b0329748a4d49
parent504eab561a57b3c5e9bfb70c70f06bdeea64163a (diff)
chown exec after git-clone mod
-rw-r--r--manifests/defines.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/manifests/defines.pp b/manifests/defines.pp
index 169f34f..4b8b321 100644
--- a/manifests/defines.pp
+++ b/manifests/defines.pp
@@ -59,11 +59,12 @@ define git::clone(
exec {"git-clone":
command => "git-clone --no-hardlinks $git_repo $projectroot",
creates => "$projectroot/.git",
- user => root
+ user => root,
+ notify => Exec["git-clone-chown"]
}
exec {"git-clone-chown":
command => "chown -R $runas_user.$runas_group $projectroot",
- require => Exec["git-clone"]
+ refreshonly => true
}
}