]> git.openstreetmap.org Git - chef.git/commitdiff
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 61d1162b1cab711bade231cd874a0b0198eb2bd1..d2dbb7a3b639e06876039d4b5d2d2814774aa5cc 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(","),