]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/clean-db-nominatim.erb
create archive directory on nominatim master
[chef.git] / cookbooks / nominatim / templates / default / clean-db-nominatim.erb
index 573624b586d3ac9d525edae76efab8d79bbeea7d..4a40e22d4568ddb63c67ff9b374cd29006d9d157 100644 (file)
@@ -12,7 +12,7 @@ for i in `seq 0 246`; do
   psql -q -d nominatim -c "VACUUM ANALYSE search_name_${i}"
 done
 
   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
 
 # Cleanup archive directory
 find -L /data/postgresql-archive -mtime +3 -print0 | xargs -0r rm