update example

This commit is contained in:
KUI\ahkui 2018-06-15 15:27:37 +08:00
parent 4b2c440146
commit 999118b674

View File

@ -6,7 +6,7 @@
# example: .env POSTGRES_USER=appuser and need db name is myshop_db # 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 # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
# CREATE USER $POSTGRES_USER; # CREATE USER $POSTGRES_USER PASSWORD ;
# CREATE DATABASE myshop_db; # CREATE DATABASE myshop_db;
# GRANT ALL PRIVILEGES ON DATABASE myshop_db TO $POSTGRES_USER; # GRANT ALL PRIVILEGES ON DATABASE myshop_db TO $POSTGRES_USER;
# EOSQL # EOSQL
@ -16,19 +16,19 @@
set -e set -e
# psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
# CREATE USER db1; # CREATE USER db1 PASSWORD db1;
# CREATE DATABASE db1; # CREATE DATABASE db1;
# GRANT ALL PRIVILEGES ON DATABASE db1 TO db1; # GRANT ALL PRIVILEGES ON DATABASE db1 TO db1;
# EOSQL # EOSQL
# psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
# CREATE USER db2; # CREATE USER db2 PASSWORD db2;
# CREATE DATABASE db2; # CREATE DATABASE db2;
# GRANT ALL PRIVILEGES ON DATABASE db2 TO db2; # GRANT ALL PRIVILEGES ON DATABASE db2 TO db2;
# EOSQL # EOSQL
# psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL # psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
# CREATE USER db3; # CREATE USER db3 PASSWORD db3;
# CREATE DATABASE db3; # CREATE DATABASE db3;
# GRANT ALL PRIVILEGES ON DATABASE db3 TO db3; # GRANT ALL PRIVILEGES ON DATABASE db3 TO db3;
# EOSQL # EOSQL