From: Tom Hughes Date: Sat, 15 Sep 2018 14:17:41 +0000 (+0100) Subject: Remove redundant code X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/3b1c86ed0ec02ba9c4cf22d7739e9c0a84a16c76?hp=fb0eeba826e069ecddadbc11d9160a6d63aed149 Remove redundant code --- diff --git a/cookbooks/taginfo/recipes/default.rb b/cookbooks/taginfo/recipes/default.rb index 43cb17b29..19c467c82 100644 --- a/cookbooks/taginfo/recipes/default.rb +++ b/cookbooks/taginfo/recipes/default.rb @@ -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"