Index: modules/updateserver/templates/update_update_manifests.erb |
=================================================================== |
--- a/modules/updateserver/templates/update_update_manifests.erb |
+++ b/modules/updateserver/templates/update_update_manifests.erb |
@@ -1,12 +1,13 @@ |
#!/bin/bash |
lock_file="<%= sitescripts_var_dir %>/update_update_manifests.lock" |
+timeout="<%= update_manifest_timeout %>" |
exec 9>"$lock_file" |
flock -n 9 || exit 0 |
<% repositories_to_sync.each do |repository| %> |
-hg pull -q -R "<%= sitescripts_var_dir %>/<%= repository %>" |
+timeout "$timeout" hg pull -q -R "<%= sitescripts_var_dir %>/<%= repository %>" |
<% end %> |
export PYTHONPATH=/opt/sitescripts |