X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab589c032804640ed50c5017e99c1f0d02b2dffb..eb2819f638e289314363acc0d94789330fa7e721:/cookbooks/web/recipes/cgimap.rb?ds=sidebyside 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] || []