]> git.openstreetmap.org Git - chef.git/commitdiff
clean .torrent files at the same time as .md5
authorMatija Nalis <mnalis-git@voyager.hr>
Sat, 21 Nov 2020 00:16:36 +0000 (01:16 +0100)
committerMatija Nalis <mnalis-git@voyager.hr>
Sat, 21 Nov 2020 00:16:36 +0000 (01:16 +0100)
cookbooks/planet/templates/default/old-planet-file-cleanup.erb

index 52ce686232f2d53e71990753d210b92b92e5ff65..d58c803bb097465c3a614abf1db67193f8751940 100644 (file)
@@ -99,6 +99,7 @@ to_delete += deletions(
   /planet-([0-9]{6}).osm.pbf/,
   today,
   ["planet-%y%m%d.osm.pbf",
   /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(
    "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-([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
    "history-%y%m%d.osm.pbf.md5"])
 
 total_size = 0