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

View File

@@ -15,8 +15,10 @@
include_recipe 'postfix::_common' include_recipe 'postfix::_common'
postmap_command = platform_family?('rhel') ? '/usr/sbin/postmap' : 'postmap'
execute 'update-postfix-transport' do 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') environment PATH: "#{ENV['PATH']}:/opt/omni/bin:/opt/omni/sbin" if platform_family?('omnios')
action :nothing action :nothing
end end