X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b8cf59b1443e4efad7b9b75cee089394f03eaa33..a0858c90b268bfa28bc362d687f89e43b48830e3:/cookbooks/tile/templates/default/cleanup-tiles.erb diff --git a/cookbooks/tile/templates/default/cleanup-tiles.erb b/cookbooks/tile/templates/default/cleanup-tiles.erb index 34761ba85..fa69ef4d9 100644 --- a/cookbooks/tile/templates/default/cleanup-tiles.erb +++ b/cookbooks/tile/templates/default/cleanup-tiles.erb @@ -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