Merge pull request #149 from scottymarshall/chef13_fix

Fixed sbin issue with Chef13 \nSigned-off-by: Scott Marshall  <scott.…
This commit is contained in:
Tim Smith 2018-07-24 15:00:23 -07:00 committed by GitHub
commit fcc043cbcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,8 +15,10 @@
include_recipe 'postfix::_common'
postmap_command = platform_family?('rhel') ? '/usr/sbin/postmap' : 'postmap'
execute 'update-postfix-relay-restrictions' do
command "postmap #{node['postfix']['relay_restrictions_db']}"
command "#{postmap_command} #{node['postfix']['relay_restrictions_db']}"
environment PATH: "#{ENV['PATH']}:/opt/omni/bin:/opt/omni/sbin" if platform_family?('omnios')
action :nothing
end