X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/86edbbca8af9903fca18dbb20a6ea2ca62e7d97c..32807af28e2d59cb4664f60eab1ab5111513cb77:/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 index 3a96141a7..76b7af273 100644 --- a/cookbooks/taginfo/templates/default/update-planet.erb +++ b/cookbooks/taginfo/templates/default/update-planet.erb @@ -31,9 +31,13 @@ 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 mv "$PLANETNEW" "$PLANETOLD" rm "$OSCFILE" + +# expire old logs + +find "${LOGDIR}" -mtime +28 -delete