osm2pgsql can use a connection string
See option -d at https://osm2pgsql.org/doc/man/latest.html
This commit is contained in:
parent
12224db3b9
commit
af174bc930
|
@ -1,3 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
echo $POSTGRES_PASSWORD | osm2pgsql --create --hstore --style tools/roads_import.lua -O flex -H $POSTGRES_HOST -d $POSTGRES_DB -U $POSTGRES_USER -W /pbf/*.osm.pbf
|
osm2pgsql --create --hstore --style tools/roads_import.lua -O flex -d postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB /pbf/*.osm.pbf
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue