projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bee37b7
)
Try to `mkdir` before `mv`, to account for new years.
author
Matt Amos
<zerebubuth@gmail.com>
Wed, 24 Dec 2014 17:57:38 +0000
(17:57 +0000)
committer
Matt Amos
<zerebubuth@gmail.com>
Wed, 24 Dec 2014 17:57:38 +0000
(17:57 +0000)
cookbooks/planet/templates/default/planetdump.erb
patch
|
blob
|
history
diff --git
a/cookbooks/planet/templates/default/planetdump.erb
b/cookbooks/planet/templates/default/planetdump.erb
index 34046657ea2f8af2b77beeb806b9e2cc89f64d1b..8c9eb407b264f9ec4020cb286d288ccde1ea81c5 100644
(file)
--- a/
cookbooks/planet/templates/default/planetdump.erb
+++ b/
cookbooks/planet/templates/default/planetdump.erb
@@
-63,5
+63,6
@@
time nice -n 19 /opt/planet-dump-ng/planet-dump-ng \
"history-${date}.osm.pbf" => node[:planet][:dump][:pbf_history_directory]
}.each do |file,dir| -%>
md5sum "<%= file %>" > "<%= file %>.md5"
+mkdir -p "<%= dir %>"
mv "<%= file %>" "<%= file %>.md5" "<%= dir %>"
<% end -%>