Merge pull request #156 from DMac134/master

fixed transports not using /usr/sbin on RHEL
This commit is contained in:
Tim Smith 2019-11-18 16:48:11 -08:00 committed by GitHub
commit 4a17dd96aa
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-transport' do
command "postmap #{node['postfix']['transport_db']}"
command "#{postmap_command} #{node['postfix']['transport_db']}"
environment PATH: "#{ENV['PATH']}:/opt/omni/bin:/opt/omni/sbin" if platform_family?('omnios')
action :nothing
end