Revert "Don't run cgimap in readonly mode when the database is writable"
authorTom Hughes <tom@compton.nu>
Sun, 26 May 2019 07:32:03 +0000 (08:32 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 26 May 2019 07:32:03 +0000 (08:32 +0100)
This reverts commit eab36a9bcc201a289549bf0d4a4c456bbb150445.

cookbooks/web/recipes/cgimap.rb

index d2dbb7a3b639e06876039d4b5d2d2814774aa5cc..1ab1045f283a634938e9bc753cda16248a4e48f5 100644 (file)
@@ -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"