From aba1410ce84a9f89371e3541768bbadcae65505f Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 18 Jun 2015 08:15:58 +0200 Subject: [PATCH 1/1] nominatim: reduce archiving time for wal logs --- cookbooks/nominatim/templates/default/clean-db-nominatim.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/nominatim/templates/default/clean-db-nominatim.erb b/cookbooks/nominatim/templates/default/clean-db-nominatim.erb index 4a40e22d4..42fd9b4d4 100644 --- a/cookbooks/nominatim/templates/default/clean-db-nominatim.erb +++ b/cookbooks/nominatim/templates/default/clean-db-nominatim.erb @@ -15,6 +15,6 @@ done <% if node[:postgresql][:settings][:defaults][:archive_mode] == "on" -%> # Cleanup archive directory -find -L /data/postgresql-archive -mtime +3 -print0 | xargs -0r rm +find -L /data/postgresql-archive -mtime +2 -print0 | xargs -0r rm <% end -%> -- 2.39.5