Skip to content

Commit

Permalink
[fix] rpm -q package_name is static #18
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ta-yamada committed Nov 22, 2017
1 parent c5898a9 commit a5c2a34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cookbooks/postgresql/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
# yum install
# ##################################################
package node[:postgresql][:rpm] do
not_if 'rpm -q pgdg-centos96-9.6-3'
# not_if 'rpm -q pgdg-centos96-9.6-3'
# not_if 'rpm -q pgdg-redhat96-9.6-3'
not_if "rpm -q #{File.basename(node[:postgresql][:rpm], '.noarch.rpm')}"
end

node[:postgresql][:pkg].each do |pkg|
Expand Down

0 comments on commit a5c2a34

Please sign in to comment.