From 277d3d075423ee35e3027b74dab8838aeab5d0ed Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Wed, 21 Aug 2024 01:15:25 +0200 Subject: [PATCH] Test update script --- scripts/osm2pgsql/update.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/osm2pgsql/update.sh b/scripts/osm2pgsql/update.sh index 7b3532a807..601d490cdd 100755 --- a/scripts/osm2pgsql/update.sh +++ b/scripts/osm2pgsql/update.sh @@ -8,14 +8,14 @@ mv build_db.lua ~/data/ TIMESTAMP=$(osmium fileinfo ~/data/planet-latest.osm.pbf -g header.option.timestamp) DATE=$(echo $TIMESTAMP | sed "s/T.*//") echo $DATE -npm run create:database -- ${DATE/T.*//} +npm run create:database -- -- ${DATE/T.*//} cd ~/data || exit rm planet-latest.osm.pbf wget https://planet.osm.org/pbf/planet-latest.osm.pbf rm seeddb.log -nohup 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 +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 # To see the progress # tail -f seeddb.log