projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f6a64a
)
Don't run cgimap in readonly mode when the database is writable
author
Tom Hughes
<tom@compton.nu>
Sat, 25 May 2019 10:23:06 +0000
(11:23 +0100)
committer
Tom Hughes
<tom@compton.nu>
Sat, 25 May 2019 10:32:10 +0000
(11:32 +0100)
cookbooks/web/recipes/cgimap.rb
patch
|
blob
|
history
diff --git
a/cookbooks/web/recipes/cgimap.rb
b/cookbooks/web/recipes/cgimap.rb
index 4c5a0cd8de188b33c4375001455a9815ce32393b..61d1162b1cab711bade231cd874a0b0198eb2bd1 100644
(file)
--- a/
cookbooks/web/recipes/cgimap.rb
+++ b/
cookbooks/web/recipes/cgimap.rb
@@
-28,7
+28,7
@@
end
if node[:web][:readonly_database_host]
database_host = node[:web][:readonly_database_host]
- database_readonly =
true
+ database_readonly =
node[:web][:readonly_database_host] != node[:web][:database_host]
else
database_host = node[:web][:database_host]
database_readonly = node[:web][:status] == "database_readonly"