X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/bd3a77ffbae2be8b346c4f1e0309790fdbb36a49..cf104d6ba87464701b5abe7ce7264ecbc0c261b9:/cookbooks/planet/templates/default/planetdump.erb?ds=sidebyside diff --git a/cookbooks/planet/templates/default/planetdump.erb b/cookbooks/planet/templates/default/planetdump.erb index 5b32054a6..c6aca9423 100644 --- a/cookbooks/planet/templates/default/planetdump.erb +++ b/cookbooks/planet/templates/default/planetdump.erb @@ -113,9 +113,9 @@ function install_dump { md5sum "${name}" > "${name}.md5" mkdir -p "${dir}/${year}" - test -f "${name}.torrent" && mv "${name}.torrent" "${dir}/${year}" mv "${name}" "${name}.md5" "${dir}/${year}" ln -sf "${year:-.}/${name}" "${dir}/${latest}" + test -f "${name}.torrent" && mv "${name}.torrent" "${dir}/${year}" && ln -sf "${year:-.}/${name}.torrent" "${dir}/${latest}.torrent" rm -f "${dir}/${latest}.md5" sed -e "s/${name}/${latest}/" "${dir}/${year}/${name}.md5" > "${dir}/${latest}.md5" }