]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/cleanup-tiles.erb
Revert "Take thorn-03 out of production"
[chef.git] / cookbooks / tile / templates / default / cleanup-tiles.erb
index eebcd41a4f15ec8e1e1a2bdc6795c3ad1592d5b7..b0a6a7419775b11cad211a47849741f4a3cb13f4 100644 (file)
@@ -19,7 +19,7 @@ my $tempfile = tmpnam();
 
 if (df($tiledir)->{per} > 90)
 {
-    system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+35", "-fprintf", $tempfile, "%A@ %p\n");
+    system("find", $tiledir, "-xdev", "-name", "lost+found", "-prune", "-o", "-type", "f", "-name", "*.meta", "-atime", "+10", "-fprintf", $tempfile, "%A@ %p\n");
 
     open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";