X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8aa57233f9034b901d7a652bd6276d0d7c3ea4f0..4687a5bf9faa00f2ff3a14545cdd58a65a65ab8d:/cookbooks/nominatim/templates/default/cron.erb diff --git a/cookbooks/nominatim/templates/default/cron.erb b/cookbooks/nominatim/templates/default/cron.erb index 956a2d786..68961e54e 100644 --- a/cookbooks/nominatim/templates/default/cron.erb +++ b/cookbooks/nominatim/templates/default/cron.erb @@ -7,3 +7,6 @@ MAILTO=<%= @mailto %> 00 3 1 * * nominatim /usr/local/bin/backup-nominatim <% end -%> 30 1 * * * postgres /usr/local/bin/vacuum-db-nominatim +<% if node[:postgresql][:settings][:defaults][:archive_mode] == "on" -%> +05 */4 * * * postgres /usr/local/bin/clean-db-nominatim +<% end -%>