Skip to content

Commit 1e03777

Browse files
author
Mori Reo
committed
fix centos fails libpq-dev package
1 parent 5800238 commit 1e03777

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

recipes/ruby.rb

+6-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@
4646
node['postgresql']['client']['packages'].each do |pg_pack|
4747
resources("package[#{pg_pack}]").run_action(:install)
4848
end
49-
50-
package "libpq-dev" do
51-
action :nothing
52-
end.run_action(:install)
49+
50+
if ["debian","ubuntu"].include? node['platform']
51+
package "libpq-dev" do
52+
action :nothing
53+
end.run_action(:install)
54+
end
5355

5456
begin
5557
chef_gem "pg"

0 commit comments

Comments
 (0)