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 -%>