]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/clean-db-nominatim.erb
run git checkout before the rest of the nominatim setup
[chef.git] / cookbooks / nominatim / templates / default / clean-db-nominatim.erb
index 962ebab94ba87ef7b8ed25c379fc883ca64128dd..a15ef1e31e91d004630c85a090f7b7f05c180a78 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 -mmin +1440 -print0 | xargs -0r rm
 
 <% end -%>