]> git.openstreetmap.org Git - chef.git/commitdiff
Remove redundant code
authorTom Hughes <tom@compton.nu>
Sat, 15 Sep 2018 14:17:41 +0000 (15:17 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 15 Sep 2018 14:17:41 +0000 (15:17 +0100)
cookbooks/taginfo/recipes/default.rb

index 43cb17b294c40010e9eae86035fc96944424d903..19c467c82cc2ccd2b79f750d45793fa6e4f89a72 100644 (file)
@@ -62,10 +62,6 @@ apache_module "cache"
 apache_module "cache_disk"
 apache_module "headers"
 
-file "/etc/cron.d/taginfo" do
-  action :delete
-end
-
 directory "/var/log/taginfo" do
   owner "taginfo"
   group "taginfo"
@@ -160,7 +156,7 @@ node[:taginfo][:sites].each do |site|
     notifies :restart, "passenger_application[#{directory}/taginfo/web/public]"
   end
 
-  %w[taginfo/web/tmp bin data data/old download sources planet planet/log].each do |dir|
+  %w[taginfo/web/tmp bin data data/old download sources].each do |dir|
     directory "#{directory}/#{dir}" do
       owner "taginfo"
       group "taginfo"
@@ -168,14 +164,6 @@ node[:taginfo][:sites].each do |site|
     end
   end
 
-  file "#{directory}/bin/update-planet" do
-    action :delete
-  end
-
-  file "#{directory}/bin/update-taginfo" do
-    action :delete
-  end
-
   template "#{directory}/bin/update" do
     source "update.erb"
     owner "taginfo"