diff --git a/osm2pgsql.sh b/osm2pgsql.sh index 0ca1fa7..5e8c5ef 100755 --- a/osm2pgsql.sh +++ b/osm2pgsql.sh @@ -1,3 +1,4 @@ #!/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 +