]> 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 a728ac1bfd7aed70322a10d2b38f35153697b56d..311c7703e6230cb1b47c15716d66e066ecc6d74c 100644 (file)
@@ -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 -delte