]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/tile/recipes/default.rb
Drop cleanup code
[chef.git] / cookbooks / tile / recipes / default.rb
index b88e18c2c359c984fbd2639ce8aad96bd9f633a0..a9b503c1c6bd3ad1240207356246045a8f5e5882 100644 (file)
@@ -687,13 +687,9 @@ systemd_timer "cleanup-tiles@" do
 end
 
 tile_directories.each do |directory|
-  label = directory.gsub("/", "-")
+  label = directory[1..].gsub("/", "-")
 
-  cron_d "cleanup-tiles#{label}" do
-    action :delete
-  end
-
-  service "cleanup-tiles@#{label[1..]}.timer" do
+  service "cleanup-tiles@#{label}.timer" do
     action [:enable, :start]
   end
 end