From 20b0fc53c2252843deb0312cf6962daa233c9840 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Tue, 10 Sep 2024 13:35:16 +0200 Subject: [PATCH] Scripts: fix update script --- scripts/osm2pgsql/update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/osm2pgsql/update.sh b/scripts/osm2pgsql/update.sh index d88f89606..f20c77889 100755 --- a/scripts/osm2pgsql/update.sh +++ b/scripts/osm2pgsql/update.sh @@ -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