Scripts: fix update script
This commit is contained in:
parent
60898a868c
commit
20b0fc53c2
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
TIMESTAMP=$(osmium fileinfo ~/data/planet-latest.osm.pbf -g header.option.timestamp)
|
||||||
DATE=$(echo $TIMESTAMP | sed "s/T.*//")
|
DATE=$(echo $TIMESTAMP | sed "s/T.*//")
|
||||||
echo $DATE
|
echo $DATE
|
||||||
|
cd ~/git/MapComplete/ || exit
|
||||||
npm run create:database -- -- ${DATE/T.*//}
|
npm run create:database -- -- ${DATE/T.*//}
|
||||||
|
cd ~/data || exit
|
||||||
|
|
||||||
rm seeddb.log
|
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 planet-latest.osm.pbf >> seeddb.log
|
||||||
|
|
Loading…
Add table
Reference in a new issue