From 7d83cb1a7fdaad23d4a1343edb75145f60bf771f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sat, 12 Oct 2024 13:03:39 +0200 Subject: [PATCH] Fix: add nvm path --- scripts/osm2pgsql/update.sh | 2 ++ 1 file changed, 2 insertions(+) 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