From 7199ae5a340f5289e61982824ea7ee88bc9955ee Mon Sep 17 00:00:00 2001 From: "KUI\\ahkui" Date: Fri, 15 Jun 2018 23:37:27 +0800 Subject: [PATCH] fix wrong example --- postgres/docker-entrypoint-initdb.d/createdb.sh.example | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/postgres/docker-entrypoint-initdb.d/createdb.sh.example b/postgres/docker-entrypoint-initdb.d/createdb.sh.example index 8a5cf69..e94b46e 100644 --- a/postgres/docker-entrypoint-initdb.d/createdb.sh.example +++ b/postgres/docker-entrypoint-initdb.d/createdb.sh.example @@ -6,7 +6,7 @@ # example: .env POSTGRES_USER=appuser and need db name is myshop_db # # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL -# CREATE USER myuser IDENTIFIED BY ENCRYPTED PASSWORD 'mypassword'; +# CREATE USER myuser WITH PASSWORD 'mypassword'; # CREATE DATABASE myshop_db; # GRANT ALL PRIVILEGES ON DATABASE myshop_db TO myuser; # EOSQL @@ -16,19 +16,19 @@ set -e # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL -# CREATE USER db1 IDENTIFIED BY ENCRYPTED PASSWORD 'db1'; +# CREATE USER db1 WITH PASSWORD 'db1'; # CREATE DATABASE db1; # GRANT ALL PRIVILEGES ON DATABASE db1 TO db1; # EOSQL # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL -# CREATE USER db2 IDENTIFIED BY ENCRYPTED PASSWORD 'db2'; +# CREATE USER db2 WITH PASSWORD 'db2'; # CREATE DATABASE db2; # GRANT ALL PRIVILEGES ON DATABASE db2 TO db2; # EOSQL # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL -# CREATE USER db3 IDENTIFIED BY ENCRYPTED PASSWORD 'db3'; +# CREATE USER db3 WITH PASSWORD 'db3'; # CREATE DATABASE db3; # GRANT ALL PRIVILEGES ON DATABASE db3 TO db3; # EOSQL