diff --git a/recipes/transports.rb b/recipes/transports.rb index 6514d65..7304712 100644 --- a/recipes/transports.rb +++ b/recipes/transports.rb @@ -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