X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/361fe7b2d59cd38452162f1c66f961f9f71ec377..91aa30929ba9c50ef31c030c1c34bf89bee4b2b0:/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 573624b58..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[:postgres][: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 -%>