OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 lock_file="<%= @sitescripts_var_dir %>/update_update_manifests.lock" | 3 lock_file="<%= @sitescripts_var_dir %>/update_update_manifests.lock" |
4 | 4 |
5 exec 9>"$lock_file" | 5 exec 9>"$lock_file" |
6 flock -n 9 || exit 0 | 6 flock -n 9 || exit 0 |
7 | 7 |
8 <% @repositories_to_sync.each do |repository| %> | 8 <% @repositories_to_sync.each do |repository| %> |
9 hg pull -q -R "<%= @sitescripts_var_dir %>/<%= repository %>" | 9 hg pull -q -R "<%= @sitescripts_var_dir %>/<%= repository %>" |
10 <% end %> | 10 <% end %> |
11 | 11 |
12 export PYTHONPATH=/opt/sitescripts | 12 export PYTHONPATH=/opt/abpssembly |
13 python -m sitescripts.extensions.bin.updateUpdateManifests | 13 python -m sitescripts.extensions.bin.updateUpdateManifests |
14 | 14 |
15 rm -f "$lock_file" | 15 rm -f "$lock_file" |
OLD | NEW |