Disable MX checke in OTRS
authorTom Hughes <tom@compton.nu>
Wed, 13 Jan 2016 20:40:55 +0000 (20:40 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 13 Jan 2016 20:40:55 +0000 (20:40 +0000)
cookbooks/otrs/recipes/default.rb

index 18b0c2ea613d1ce875f980a7e43f6aa0aec51ae9..c90b28940b3030bbba0615cac7f28029cef1dc00 100644 (file)
@@ -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->{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
 
   line
 end