From da01c6dd494144dd4b726806b8ed4b8a19be9d63 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 3 Mar 2015 13:32:20 -0300 Subject: [PATCH] Fix mail relay recipe --- cookbooks/email/recipes/relay.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/email/recipes/relay.rb b/cookbooks/email/recipes/relay.rb index cd3c615..cd74f66 100644 --- a/cookbooks/email/recipes/relay.rb +++ b/cookbooks/email/recipes/relay.rb @@ -26,7 +26,7 @@ end execute 'postfix:interfaces:all' do command "postconf inet_interfaces=all" notifies :restart, 'service[postfix]' - not_if { system('grep -q "inet_interfaces\s*=\s*all" /etc/postfix/main.cf') } + only_if { `postconf -h inet_interfaces`.strip != 'all' } end transport = { -- libgit2 0.21.2