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 -mmin +1440 -print0 | xargs -0r rm
<% end -%>