From: Tom Hughes Date: Wed, 13 Jan 2016 20:40:55 +0000 (+0000) Subject: Disable MX checke in OTRS X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/a1dafdc4794ca4537c5d63ee2205de6788b7b8ca Disable MX checke in OTRS --- diff --git a/cookbooks/otrs/recipes/default.rb b/cookbooks/otrs/recipes/default.rb index 18b0c2ea6..c90b28940 100644 --- a/cookbooks/otrs/recipes/default.rb +++ b/cookbooks/otrs/recipes/default.rb @@ -67,6 +67,7 @@ config = edit_file "/opt/otrs-#{version}/Kernel/Config.pm.dist" do |line| line.gsub!(/^( *)\$Self->{Database} = 'otrs'/, "\\1$Self->{Database} = '#{database_name}'") line.gsub!(/^( *\$Self->{DatabaseDSN} = "DBI:mysql:)/, "#\\1") line.gsub!(/^#( *\$Self->{DatabaseDSN} = "DBI:Pg:.*;host=)/, "\\1") + line.gsub!(/^( *)# (\$Self->{CheckMXRecord} = 0)/, "\\1\\2") line end