osm2pgsql can use a connection string

See option -d at https://osm2pgsql.org/doc/man/latest.html
This commit is contained in:
Dennis Boldt 2022-01-02 14:12:30 +01:00 committed by Paul Bienkowski
parent 12224db3b9
commit af174bc930

View file

@ -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