Commit da01c6dd494144dd4b726806b8ed4b8a19be9d63
1 parent
aae67ebf
Exists in
master
and in
90 other branches
Fix mail relay recipe
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
cookbooks/email/recipes/relay.rb
... | ... | @@ -26,7 +26,7 @@ end |
26 | 26 | execute 'postfix:interfaces:all' do |
27 | 27 | command "postconf inet_interfaces=all" |
28 | 28 | notifies :restart, 'service[postfix]' |
29 | - not_if { system('grep -q "inet_interfaces\s*=\s*all" /etc/postfix/main.cf') } | |
29 | + only_if { `postconf -h inet_interfaces`.strip != 'all' } | |
30 | 30 | end |
31 | 31 | |
32 | 32 | transport = { | ... | ... |