]> git.openstreetmap.org Git - chef.git/commitdiff
Ignore lost+found when cleaning up tiles
authorTom Hughes <tom@compton.nu>
Sun, 23 Mar 2014 22:57:17 +0000 (22:57 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 23 Mar 2014 22:57:17 +0000 (22:57 +0000)
cookbooks/tile/templates/default/cleanup-tiles.erb

index de696c659b89afd9c34a689755e0472d789a4a5d..3cbd64b34b17ea720e657fe59ed1586c822485b0 100644 (file)
@@ -19,7 +19,7 @@ my $tempfile = tmpnam();
 
 if (df($tiledir)->{per} > 90)
 {
 
 if (df($tiledir)->{per} > 90)
 {
-    system("find", $tiledir, "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+28", "-fprintf", $tempfile, "%A@ %p\n");
+    system("find", $tiledir, "-name", "lost+found", "-prune", "-o", "-xdev", "-type", "f", "-name", "*.meta", "-atime", "+28", "-fprintf", $tempfile, "%A@ %p\n");
 
     open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";
 
 
     open(TILES, "-|", "sort", "-n", $tempfile) || die "Can't open $tempfile: $!";