diff --git a/scripts/osm2pgsql/update.sh b/scripts/osm2pgsql/update.sh index f20c77889..d15c18f95 100755 --- a/scripts/osm2pgsql/update.sh +++ b/scripts/osm2pgsql/update.sh @@ -21,7 +21,7 @@ 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 +osm2pgsql -O flex -S build_db.lua -s --flat-nodes=import-help-file -d postgresql://user:password@localhost:5444/osm-poi.${DATE} planet-latest.osm.pbf >> seeddb.log # To see the progress # tail -f seeddb.log