Make sure cgimap uses the writable database for updates
authorTom Hughes <tom@compton.nu>
Sat, 25 May 2019 10:48:51 +0000 (11:48 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 25 May 2019 10:48:51 +0000 (11:48 +0100)
cookbooks/web/recipes/cgimap.rb

index 61d1162..d2dbb7a 100644 (file)
@@ -46,6 +46,7 @@ systemd_service "cgimap" do
                    "CGIMAP_USERNAME" => "cgimap",
                    "CGIMAP_PASSWORD" => db_passwords["cgimap"],
                    "CGIMAP_OAUTH_HOST" => node[:web][:database_host],
+                   "CGIMAP_UPDATE_HOST" => node[:web][:database_host],
                    "CGIMAP_PIDFILE" => "#{node[:web][:pid_directory]}/cgimap.pid",
                    "CGIMAP_LOGFILE" => "#{node[:web][:log_directory]}/cgimap.log",
                    "CGIMAP_MEMCACHE" => memcached_servers.join(","),