From 132e019c3a6db27b5f9525d6cbb391d3fffaf5b9 Mon Sep 17 00:00:00 2001 From: David Carlos Date: Fri, 15 Jan 2016 15:47:49 -0200 Subject: [PATCH] Fixs email check. --- config/prod/config.yaml | 2 -- cookbooks/mailman/recipes/default.rb | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/config/prod/config.yaml b/config/prod/config.yaml index 06c538f..effbaae 100644 --- a/config/prod/config.yaml +++ b/config/prod/config.yaml @@ -26,5 +26,3 @@ raven_dsn: https://4418146896924efe9b73d557f803f047:8a59f39b5f584ff589ecf3dd47fa google_analytics_id: 'UA-64206731-1' munin_master: 10.21.0.10 colab_http_workers: 32 -dev_backup_frequency: false -disable_send_emails: false diff --git a/cookbooks/mailman/recipes/default.rb b/cookbooks/mailman/recipes/default.rb index 606c459..e5faf21 100644 --- a/cookbooks/mailman/recipes/default.rb +++ b/cookbooks/mailman/recipes/default.rb @@ -85,12 +85,12 @@ end execute 'postfix:disable-send-emails' do command "postconf 'default_transport = fs_mail'" - only_if "#{node['config']['disable_send_emails']}" + only_if node['config']['disable_send_emails'] end execute 'postfix:enable-send-emails' do command "postconf 'default_transport = smtp'" - not_if "#{node['config']['disable_send_emails']}" + not_if node['config']['disable_send_emails'] end cookbook_file '/etc/postfix/master.cf' do -- libgit2 0.21.2