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,18 @@ |
+#!/bin/bash |
+ |
+run_file="/var/run/update_update_manifests" |
mathias
2014/07/25 07:04:28
At http://mywiki.wooledge.org/BashFAQ/045 please f
Felix Dahlke
2014/07/25 09:52:01
Done.
|
+ |
+if [[ -f $run_file ]]; then |
+ exit 0 |
+fi |
+ |
+echo "$$" >> "$run_file" |
+ |
+<% repositories_to_sync.each do |repository| %> |
+hg pull -q -u -R <%= base_dir %>/<%= repository %> |
+<% end %> |
+ |
+export PYTHONPATH=/opt/sitescripts |
+python -m sitescripts.extensions.bin.updateUpdateManifests |
+ |
+rm -f "$run_file" |