diff --git a/scripts/osm2pgsql/update.sh b/scripts/osm2pgsql/update.sh index e3b87a051..1ed6aaec5 100755 --- a/scripts/osm2pgsql/update.sh +++ b/scripts/osm2pgsql/update.sh @@ -2,6 +2,8 @@ # Full database update. Downloads the latest from planet.osm.org, build update script, setup and seed it # Meant to be run with 'nohup' +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm nvm use 20.12.2 npm run init # contains a 'npm run generate, which builds the layers' npm run generate:buildDbScript