]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/templates/default/update-planet.erb
Switch taginfo to use planet::current
[chef.git] / cookbooks / taginfo / templates / default / update-planet.erb
diff --git a/cookbooks/taginfo/templates/default/update-planet.erb b/cookbooks/taginfo/templates/default/update-planet.erb
deleted file mode 100644 (file)
index 8fd69ff..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-set -e
-
-cd "<%= @directory %>/planet"
-
-OSCFILE="$(date +%Y%m%d-%H%M).osc"
-
-# if there are old .osc files, they have to be taken into account
-
-OLDFILE=2*-*.osc
-if [ -z "$OLDFILE" ]
-then
-   osmosis --rri --simc --write-xml-change "$OSCFILE"
-else
-   osmosis --rxc "$OLDFILE" --rri --mc --simc --write-xml-change "$OSCFILE" && rm "$OLDFILE"
-fi
-
-# osc file is ready, create new planet file
-
-osmosis --read-xml-change "$OSCFILE" --read-bin planet.pbf --buffer bufferCapacity=12000 --apply-change --buffer bufferCapacity=12000 --write-pbf planet-new.pbf
-
-# cleanup
-
-mv planet-new.pbf planet.pbf
-rm "$OSCFILE"