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