diff options
Diffstat (limited to 'modules/git')
-rw-r--r-- | modules/git/manifests/snapshot.pp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/git/manifests/snapshot.pp b/modules/git/manifests/snapshot.pp index 8b903700..47ace403 100644 --- a/modules/git/manifests/snapshot.pp +++ b/modules/git/manifests/snapshot.pp @@ -13,10 +13,12 @@ define git::snapshot( $source, user => $user } - cron { "update $name": - # FIXME no -q ? - command => "cd $name && /usr/bin/git pull", - user => $user, - minute => $refresh + if ($refresh != '0') { + cron { "update $name": + # FIXME no -q ? + command => "cd $name && /usr/bin/git pull", + user => $user, + minute => $refresh + } } } |