Fixed sbin issue with Chef13 \nSigned-off-by: Scott Marshall <scott.marshall@johnmuirhealth.com>
This commit is contained in:
parent
9bd47ffd08
commit
0dd7bc851b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user