]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/templates/default/cleanup-tiles.erb
Fix cleanup of empty tile directories
[chef.git] / cookbooks / tile / templates / default / cleanup-tiles.erb
index 34761ba85e5201b58d6d0b3d7751549ea03e2269..fa69ef4d93b22e5dd0b693b6d603a0de134ca0b0 100644 (file)
@@ -38,7 +38,7 @@ if (df($tiledir)->{per} > 90)
 
                 for (my $dir = dirname($tile); $dir ne $tiledir; $dir = dirname($dir))
                 {
-                    unlink($dir);
+                    rmdir($dir);
                 }
             }
             else