Index: modules/updateserver/templates/update_update_manifests.erb |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/modules/updateserver/templates/update_update_manifests.erb |
@@ -0,0 +1,17 @@ |
+#!/bin/bash |
+ |
+lock_file="<%= base_dir %>/update_update_manifests.lock" |
+ |
+exec 9>"$lock_file" |
+if ! flock -n 9; then |
+ exit 0 |
+fi |
+ |
+<% repositories_to_sync.each do |repository| %> |
+hg pull -q -R "<%= base_dir %>/<%= repository %>" |
+<% end %> |
+ |
+export PYTHONPATH=/opt/sitescripts |
+python -m sitescripts.extensions.bin.updateUpdateManifests |
+ |
+rm -f "$lock_file" |