Fixed sbin issue with Chef13 \nSigned-off-by: Scott Marshall <scott.marshall@johnmuirhealth.com>

This commit is contained in:
105325 2018-06-25 15:24:27 -07:00
parent 9bd47ffd08
commit 0dd7bc851b

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