From 7df2b876815f8d466160f6b5bbd0b2cb3c9fb6a8 Mon Sep 17 00:00:00 2001 From: Matija Nalis Date: Sat, 21 Nov 2020 01:16:36 +0100 Subject: [PATCH 1/1] clean .torrent files at the same time as .md5 --- cookbooks/planet/templates/default/old-planet-file-cleanup.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbooks/planet/templates/default/old-planet-file-cleanup.erb b/cookbooks/planet/templates/default/old-planet-file-cleanup.erb index 52ce68623..d58c803bb 100644 --- a/cookbooks/planet/templates/default/old-planet-file-cleanup.erb +++ b/cookbooks/planet/templates/default/old-planet-file-cleanup.erb @@ -99,6 +99,7 @@ to_delete += deletions( /planet-([0-9]{6}).osm.pbf/, today, ["planet-%y%m%d.osm.pbf", + "planet-%y%m%d.osm.pbf.torrent", "planet-%y%m%d.osm.pbf.md5"]) to_delete += deletions( @@ -106,6 +107,7 @@ to_delete += deletions( /history-([0-9]{6}).osm.pbf/, today, ["history-%y%m%d.osm.pbf", + "history-%y%m%d.osm.pbf.torrent", "history-%y%m%d.osm.pbf.md5"]) total_size = 0 -- 2.39.5