]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/cron.erb
remove date from nominatim fail2ban regex
[chef.git] / cookbooks / nominatim / templates / default / cron.erb
index 02894ffc506841d8a371a84ef2bb3ea36646ce6a..68961e54e93fe25904e660a22bc7aa6fc2819408 100644 (file)
@@ -6,4 +6,7 @@ MAILTO=<%= @mailto %>
 <% if node[:nominatim][:enable_backup] -%>
 00 3 1 * * nominatim /usr/local/bin/backup-nominatim
 <% end -%>
-30 1 * * * postgres /usr/local/bin/clean-db-nominatim
+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 -%>