X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/86edbbca8af9903fca18dbb20a6ea2ca62e7d97c..7646875350f33fccb38f8553495b4b5cb9121ac8:/cookbooks/taginfo/templates/default/update-planet.erb?ds=sidebyside diff --git a/cookbooks/taginfo/templates/default/update-planet.erb b/cookbooks/taginfo/templates/default/update-planet.erb index 3a96141a7..311c7703e 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 -delte