]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/cron.erb
Merge remote-tracking branch 'github/pull/89'
[chef.git] / cookbooks / nominatim / templates / default / cron.erb
index 956a2d7869329a6b9986c7c188a182a1e938f3b7..68961e54e93fe25904e660a22bc7aa6fc2819408 100644 (file)
@@ -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 -%>