]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/templates/default/update-planet.erb
Switch taginfo to expire logs manually and drop logrotate
[chef.git] / cookbooks / taginfo / templates / default / update-planet.erb
index 3a96141a73fc454f9668ed4d1ed4f9194dd24fb2..311c7703e6230cb1b47c15716d66e066ecc6d74c 100644 (file)
@@ -31,9 +31,13 @@ fi
 
 # osc file is ready, create new planet file
 
 
 # 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
 
 mv "$PLANETNEW" "$PLANETOLD"
 rm "$OSCFILE"
 
 # cleanup
 
 mv "$PLANETNEW" "$PLANETOLD"
 rm "$OSCFILE"
+
+# expire old logs
+
+find "${LOGDIR}" -mtime +28 -delte