projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a188f
)
Disable IP checks for OTRS sessions
author
Tom Hughes
<tom@compton.nu>
Mon, 15 Jul 2019 15:59:16 +0000
(16:59 +0100)
committer
Tom Hughes
<tom@compton.nu>
Mon, 15 Jul 2019 15:59:16 +0000
(16:59 +0100)
cookbooks/otrs/recipes/default.rb
patch
|
blob
|
history
diff --git
a/cookbooks/otrs/recipes/default.rb
b/cookbooks/otrs/recipes/default.rb
index ab7093ea98452f9d8790018e6838659c8edda6a5..dd5994b20fb12469fd4998c76296a746c4316d71 100644
(file)
--- 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