X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0515f31b3462cc9720580a6b60d57914b241bfa2..86aeaefd2b815793d4bed90170428068e60f7c9f:/cookbooks/otrs/recipes/default.rb diff --git a/cookbooks/otrs/recipes/default.rb b/cookbooks/otrs/recipes/default.rb index ab7093ea9..dd5994b20 100644 --- a/cookbooks/otrs/recipes/default.rb +++ b/cookbooks/otrs/recipes/default.rb @@ -80,6 +80,7 @@ config = edit_file "/opt/otrs-#{version}/Kernel/Config.pm.dist" do |line| line.gsub!(/^( *\$Self->{DatabaseDSN} = "DBI:mysql:)/, "#\\1") line.gsub!(/^#( *\$Self->{DatabaseDSN} = "DBI:Pg:.*;host=)/, "\\1") line.gsub!(/^( *)# (\$Self->{CheckMXRecord} = 0)/, "\\1\\2") + line.gsub!(/^( *)# \$Self->{SessionUseCookie} = 0/, "\\1$Self->{SessionCheckRemoteIP} = 0") line end