X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d68f9a360c3d96ad0cc11d3af2f4a1370e2851f2..4c87577cb2b3d35abd3c833c88ad18ddcd64b3b0:/cookbooks/tile/templates/default/cleanup-tiles.erb?ds=sidebyside diff --git a/cookbooks/tile/templates/default/cleanup-tiles.erb b/cookbooks/tile/templates/default/cleanup-tiles.erb index de696c659..c92e53878 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -19,7 +19,7 @@ my $tempfile = tmpnam(); if (df($tiledir)->{per} > 90) { - system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+28", "-fprintf", $tempfile, "%A@ %p\n"); + system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+14", "-fprintf", $tempfile, "%A@ %p\n"); open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";