Merge pull request #156 from DMac134/master
fixed transports not using /usr/sbin on RHEL
This commit is contained in:
commit
4a17dd96aa
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user