Index: modules/sitescripts/manifests/init.pp |
=================================================================== |
--- a/modules/sitescripts/manifests/init.pp |
+++ b/modules/sitescripts/manifests/init.pp |
@@ -27,7 +27,9 @@ |
cron {"update_sitescripts": |
ensure => present, |
- command => "hg pull -q -u -R /opt/sitescripts", |
+ # We spread out the pulls a little to avoid the following bug in hgweb: |
+ # http://bz.selenic.com/show_bug.cgi?id=3953 |
+ command => "bash -c 'sleep $((RANDOM \% 20))'; hg pull -q -u -R /opt/sitescripts", |
environment => ['MAILTO=admins@adblockplus.org,root'], |
user => root, |
require => Exec["fetch_sitescripts"], |