Skip to content

Commit

Permalink
Scripts: fix update script
Browse files Browse the repository at this point in the history
  • Loading branch information
pietervdvn committed Sep 10, 2024
1 parent 60898a8 commit 20b0fc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/osm2pgsql/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ wget https://planet.osm.org/pbf/planet-latest.osm.pbf
TIMESTAMP=$(osmium fileinfo ~/data/planet-latest.osm.pbf -g header.option.timestamp)
DATE=$(echo $TIMESTAMP | sed "s/T.*//")
echo $DATE
cd ~/git/MapComplete/ || exit
npm run create:database -- -- ${DATE/T.*//}

cd ~/data || exit

rm seeddb.log
osm2pgsql -O flex -S build_db.lua -s --flat-nodes=import-help-file -d postgresql://user:password@localhost:5444/osm-poi planet-latest.osm.pbf >> seeddb.log
Expand Down

0 comments on commit 20b0fc5

Please sign in to comment.