Commit 662d8cc0d1cb79123df56b50aea94d59ab42f652

Authored by Antonio Terceiro
1 parent ac804770

mailman: fix postfix inet_interfaces setup

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
cookbooks/mailman/recipes/default.rb
... ... @@ -32,7 +32,7 @@ end
32 32  
33 33 execute 'postfix:interfaces' do
34 34 command "postconf inet_interfaces=\"$(cat /etc/hostname), localhost\""
35   - not_if { system('postconf inet_interfaces | grep -q \'=\s*localhost\s*$\'') }
  35 + only_if { `postconf -h inet_interfaces`.strip == 'localhost' }
36 36 notifies :restart, 'service[postfix]'
37 37 end
38 38  
... ...