Minor fixes for taginfo
authorTom Hughes <tom@compton.nu>
Sun, 16 Feb 2014 16:28:42 +0000 (16:28 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 16 Feb 2014 16:28:42 +0000 (16:28 +0000)
cookbooks/taginfo/recipes/default.rb
cookbooks/taginfo/templates/default/update-planet.erb

index 628f1f5..ee3d887 100644 (file)
@@ -137,6 +137,12 @@ node[:taginfo][:sites].each do |site|
     mode 0755
   end
 
+  directory "#{directory}/data/old" do
+    owner "taginfo"
+    group "taginfo"
+    mode 0755
+  end
+
   directory "#{directory}/download" do
     owner "taginfo"
     group "taginfo"
index 3a96141..a728ac1 100644 (file)
@@ -31,7 +31,7 @@ fi
 
 # osc file is ready, create new planet file
 
-osmosis --read-xml-change "$OSCFILE" --read-bin "$PLANETOLD" --buffer bufferCapacity=12000 --apply-change --buffer bufferCapacity=12000 --write-pbf omitmetadata=true file="$PLANETNEW"
+osmosis --read-xml-change "$OSCFILE" --read-bin "$PLANETOLD" --buffer bufferCapacity=12000 --apply-change --buffer bufferCapacity=12000 --write-pbf file="$PLANETNEW"
 
 # cleanup