diff options
-rw-r--r-- | modules/subversion/manifests/init.pp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/modules/subversion/manifests/init.pp b/modules/subversion/manifests/init.pp index 70e4e38b..cb0ebbbf 100644 --- a/modules/subversion/manifests/init.pp +++ b/modules/subversion/manifests/init.pp @@ -275,12 +275,14 @@ class subversion { require => Package['subversion'] } - cron { "update $name": - command => "cd $name && /usr/bin/svn update -q", - user => $user, - minute => $refresh, - require => Exec["/usr/bin/svn co $source $name"], - } + if ($refresh != '0') { + cron { "update $name": + command => "cd $name && /usr/bin/svn update -q", + user => $user, + minute => $refresh, + require => Exec["/usr/bin/svn co $source $name"], + } + } } class mirror { |