psql -d <%= @dbname %> -c "SELECT version();" >/dev/null 2>&1
if [[ "$?" == "0" ]]; then
- ./utils/setup.php --create-functions --create-partition-functions --enable-diff-updates
- ./utils/setup.php --setup-website
- ./utils/update.php --update-address-levels
+ ./nominatim refresh --functions --address-levels --website
fi
if [[ $current_load -lt $num_cpus ]]
then
- INST=2
+ INST=4
else
- INST=1
+ INST=2
fi
- ./utils/update.php --import-osmosis --index-instances $INST
+ ./nominatim replication --once --threads $INST
<% if node[:nominatim][:enable_git_updates] -%>
pushd <%= @srcdir %>
if [ -f "<%= @update_maintenance_trigger %>" ]; then
rm <%= @update_maintenance_trigger %>
- ./utils/update.php --calculate-postcodes
+ ./nominatim refresh --postcodes
fi
done