From: Tom Hughes Date: Sat, 25 May 2019 10:23:06 +0000 (+0100) Subject: Don't run cgimap in readonly mode when the database is writable X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/eab36a9bcc201a289549bf0d4a4c456bbb150445?hp=7f6a64a65a5c512ba2ee9802bab4d99fd33d3e55 Don't run cgimap in readonly mode when the database is writable --- diff --git a/cookbooks/web/recipes/cgimap.rb b/cookbooks/web/recipes/cgimap.rb index 4c5a0cd8d..61d1162b1 100644 --- 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"