Skip to content

Commit 3746027

Browse files
author
ssuareza
committed
Changing variable names.
1 parent 2a61c4b commit 3746027

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This client is compatible with the official postgresql image, which means that i
77
### Create a postgres database
88

99
```
10-
docker run -e POSTGRES_HOST=host POSTGRES_USER=user -e POSTGRES_PASS=pwd -d --name=postgresql-client "CREATE DATABASE mydb;"
10+
docker run -e DB_HOST=host DB_USER=user -e DB_PASS=pwd -d --name=postgresql-client "CREATE DATABASE mydb;"
1111
```
1212

1313
### Use psql or pg_dump command

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
echo "${POSTGRES_HOST}":*:*:"${POSTGRES_USER}":"${POSTGRES_PASS}" > ~/.pgpass
2+
echo "${DB_HOST}":*:*:"${DB_USER}":"${DB_PASS}" > ~/.pgpass
33
chmod 0600 ~/.pgpass
4-
psql -h ${POSTGRES_HOST} -U ${POSTGRES_USER} -w postgres -c "$@"
4+
psql -h ${DB_HOST} -U ${DB_USER} -w postgres -c "$@"
55
exit 0

0 commit comments

Comments
 (0)