From 0dd7bc851b80b486cf2a1cfeaedd9aef7c2f437d Mon Sep 17 00:00:00 2001 From: 105325 Date: Mon, 25 Jun 2018 15:24:27 -0700 Subject: [PATCH] Fixed sbin issue with Chef13 \nSigned-off-by: Scott Marshall --- recipes/relay_restrictions.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/relay_restrictions.rb b/recipes/relay_restrictions.rb index c5548e4..3c5bf11 100644 --- a/recipes/relay_restrictions.rb +++ b/recipes/relay_restrictions.rb @@ -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