X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/df6101ff2a7258dbb8d5995144026fd5d3b9b711..8f474e1ddf42e74422668efc791026fd7e8ee3fe:/cookbooks/postgresql/templates/default/postgresql.conf.erb diff --git a/cookbooks/postgresql/templates/default/postgresql.conf.erb b/cookbooks/postgresql/templates/default/postgresql.conf.erb index 42e6f8876..28cdcaafb 100644 --- a/cookbooks/postgresql/templates/default/postgresql.conf.erb +++ b/cookbooks/postgresql/templates/default/postgresql.conf.erb @@ -20,7 +20,11 @@ listen_addresses = '<%= @settings[:listen_addresses] || @defaults[:listen_addres <% end -%> port = <%= @settings[:port] || @defaults[:port] %> max_connections = <%= @settings[:max_connections] || @defaults[:max_connections] %> +<% if @version.to_f >= 9.3 %> +unix_socket_directories = '/var/run/postgresql' +<% else -%> unix_socket_directory = '/var/run/postgresql' +<% end -%> # - Security and Authentication -