Skip to content

Commit

Permalink
Merge branch 'COOK-1224'
Browse files Browse the repository at this point in the history
  • Loading branch information
jtimberman committed Jun 13, 2012
2 parents 9eb99ac + b28a7ea commit 4e91b9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 5 additions & 2 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@
case platform
when "debian"

if platform_version.to_f == 5.0
case
when platform_version.to_f <= 5.0
default[:postgresql][:version] = "8.3"
elsif platform_version =~ /squeeze/
when platform_version.to_f == 6.0
default[:postgresql][:version] = "8.4"
else
default[:postgresql][:version] = "9.1"
end

set[:postgresql][:dir] = "/etc/postgresql/#{node[:postgresql][:version]}/main"
Expand Down
4 changes: 1 addition & 3 deletions recipes/server_debian.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@
end
when "debian"
case
when platform_version.to_f <= 5.0
when node['platform_version'].to_f <= 5.0
service_name "postgresql-#{node['postgresql']['version']}"
when platform_version =~ /squeeze/
service_name "postgresql"
else
service_name "postgresql"
end
Expand Down

0 comments on commit 4e91b9c

Please sign in to comment.