From 85c57a0b6fa3af2358e524010b95970ff9677a1b Mon Sep 17 00:00:00 2001 From: ahkui <14049597+ahkui@users.noreply.github.com> Date: Fri, 6 Jul 2018 20:59:57 +0800 Subject: [PATCH] update postgresql init db example file (#1689) --- postgres/docker-entrypoint-initdb.d/createdb.sh.example | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/postgres/docker-entrypoint-initdb.d/createdb.sh.example b/postgres/docker-entrypoint-initdb.d/createdb.sh.example index e94b46ee..822c7dee 100644 --- a/postgres/docker-entrypoint-initdb.d/createdb.sh.example +++ b/postgres/docker-entrypoint-initdb.d/createdb.sh.example @@ -13,20 +13,19 @@ # # this sh script will auto run when the postgres container starts and the $DATA_PATH_HOST/postgres not found. # - -set -e +# # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL # 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 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 WITH PASSWORD 'db3'; # CREATE DATABASE db3;