X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/778c200eeb80c748ea9c9eac53a29252eb02461e..4f7fa07759cca622d60b960f1337c2a65ab0e667:/cookbooks/web/recipes/cgimap.rb diff --git a/cookbooks/web/recipes/cgimap.rb b/cookbooks/web/recipes/cgimap.rb index 8a6b23b28..009b0a6d7 100644 --- a/cookbooks/web/recipes/cgimap.rb +++ b/cookbooks/web/recipes/cgimap.rb @@ -27,11 +27,7 @@ package "openstreetmap-cgimap-bin" do action :upgrade end -database_host = if node[:web][:readonly_database_host] - node[:web][:readonly_database_host] - else - node[:web][:database_host] - end +database_host = node[:web][:readonly_database_host] || node[:web][:database_host] memcached_servers = node[:web][:memcached_servers] || []