]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/clean-db-nominatim.erb
nominatim: add lookup call to pooled actions
[chef.git] / cookbooks / nominatim / templates / default / clean-db-nominatim.erb
index 962ebab94ba87ef7b8ed25c379fc883ca64128dd..55c2314be9d48ab3ffd492562b21969ff57def58 100644 (file)
@@ -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 -%>