From 662d8cc0d1cb79123df56b50aea94d59ab42f652 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Thu, 26 Feb 2015 18:22:16 -0300 Subject: [PATCH] mailman: fix postfix inet_interfaces setup --- cookbooks/mailman/recipes/default.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index 86eb297..dbb5213 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -32,7 +32,7 @@ end execute 'postfix:interfaces' do command "postconf inet_interfaces=\"$(cat /etc/hostname), localhost\"" - not_if { system('postconf inet_interfaces | grep -q \'=\s*localhost\s*$\'') } + only_if { `postconf -h inet_interfaces`.strip == 'localhost' } notifies :restart, 'service[postfix]' end -- libgit2 0.21.2