From: Tom Hughes Date: Sun, 26 May 2019 07:32:03 +0000 (+0100) Subject: Revert "Don't run cgimap in readonly mode when the database is writable" X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/2ce4430c9451910ff8effc55f7e56513f8a48ca0 Revert "Don't run cgimap in readonly mode when the database is writable" This reverts commit eab36a9bcc201a289549bf0d4a4c456bbb150445. --- diff --git a/cookbooks/web/recipes/cgimap.rb b/cookbooks/web/recipes/cgimap.rb index d2dbb7a3b..1ab1045f2 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 = node[:web][:readonly_database_host] != node[:web][:database_host] + database_readonly = true else database_host = node[:web][:database_host] database_readonly = node[:web][:status] == "database_readonly"