]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/taginfo/recipes/default.rb
Restart apache when taginfo config is changed.
[chef.git] / cookbooks / taginfo / recipes / default.rb
index 839089500865edf6305cf7140b9e8fa67c0607d4..2b85f0141b28d253a9771a15f3864567527fc385 100644 (file)
@@ -124,7 +124,7 @@ node[:taginfo][:sites].each do |site|
     settings["sources"]["db"]["tagstats"] = "#{directory}/taginfo/tagstats/tagstats"
     settings["tagstats"]["cxxflags"] = "-I../../osmium/include"
     settings["tagstats"]["geodistribution"] = "MmapAnon"
-    settings["user_interface"]["key_page"]["show_similar_tab"] = true
+    settings["user_interface"]["key_page"]["show_tab_similar"] = true
 
     JSON.pretty_generate(settings)
   end
@@ -134,6 +134,7 @@ node[:taginfo][:sites].each do |site|
     group "taginfo"
     mode 0644
     content settings
+    notifies :restart, "service[apache2]"
   end
 
   execute "#{directory}/taginfo/tagstats/Makefile" do