X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/c38fe4f2235708a86e6f1b547f6bb3432130f3a7..67928d8183e7049bbc3e846ca7c24753aae0ac9c:/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 a728ac1bf..76b7af273 100644 --- a/cookbooks/taginfo/templates/default/update-planet.erb +++ b/cookbooks/taginfo/templates/default/update-planet.erb @@ -37,3 +37,7 @@ osmosis --read-xml-change "$OSCFILE" --read-bin "$PLANETOLD" --buffer bufferCapa mv "$PLANETNEW" "$PLANETOLD" rm "$OSCFILE" + +# expire old logs + +find "${LOGDIR}" -mtime +28 -delete