Use system package for osmosis
authorTom Hughes <tom@compton.nu>
Tue, 18 Jun 2013 20:30:26 +0000 (21:30 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 18 Jun 2013 20:30:26 +0000 (21:30 +0100)
cookbooks/planet/files/default/bin/planet2pbf
cookbooks/planet/recipes/default.rb

index 3c2c807..d7003d5 100755 (executable)
@@ -54,7 +54,7 @@ then
        fi
        JAVACMD_OPTIONS=-Xmx2048M
        export JAVACMD_OPTIONS
-       pbzip2 -dc /store/planet/planet/${YEARFULL}/${planet}.bz2 | /home/grant/code/osmosis-0.43/bin/osmosis --read-xml - --buffer bufferCapacity=18000 --write-pbf /store/planet/pbf/${planet}.pbf
+       pbzip2 -dc /store/planet/planet/${YEARFULL}/${planet}.bz2 | osmosis --read-xml - --buffer bufferCapacity=18000 --write-pbf /store/planet/pbf/${planet}.pbf
        cd /store/planet/pbf/
        md5sum ${planet}.pbf >${planet}.pbf.md5
        ln -fs ${planet}.pbf planet-latest.osm.pbf
index 5cfdf54..cb2ff26 100644 (file)
@@ -21,6 +21,7 @@ include_recipe "apache::ssl"
 
 package "perl"
 package "php5-cli"
+package "osmosis"
 
 remote_directory "/usr/local/bin" do
   source "bin"