X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ba3b7db315b07e4d4df722571018cde36a09549b..61b239cdb6ad602b3e729535a1c719fa79589ba2:/cookbooks/nominatim/templates/default/clean-db-nominatim.erb diff --git a/cookbooks/nominatim/templates/default/clean-db-nominatim.erb b/cookbooks/nominatim/templates/default/clean-db-nominatim.erb index 962ebab94..55c2314be 100644 --- a/cookbooks/nominatim/templates/default/clean-db-nominatim.erb +++ b/cookbooks/nominatim/templates/default/clean-db-nominatim.erb @@ -12,9 +12,9 @@ for i in `seq 0 246`; do psql -q -d nominatim -c "VACUUM ANALYSE search_name_${i}" done -<% if node[:postgresql][:settings][:archive_mode] == "on" -%> +<% 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 +1 -print0 | xargs -0r rm <% end -%>