Skip to content

Commit 85c57a0

Browse files
ahkuibestlong
authored andcommitted
update postgresql init db example file (laradock#1689)
1 parent 2f99645 commit 85c57a0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

postgres/docker-entrypoint-initdb.d/createdb.sh.example

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,19 @@
1313
#
1414
# this sh script will auto run when the postgres container starts and the $DATA_PATH_HOST/postgres not found.
1515
#
16-
17-
set -e
16+
#
1817
# psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
1918
# CREATE USER db1 WITH PASSWORD 'db1';
2019
# CREATE DATABASE db1;
2120
# GRANT ALL PRIVILEGES ON DATABASE db1 TO db1;
2221
# EOSQL
23-
22+
#
2423
# psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
2524
# CREATE USER db2 WITH PASSWORD 'db2';
2625
# CREATE DATABASE db2;
2726
# GRANT ALL PRIVILEGES ON DATABASE db2 TO db2;
2827
# EOSQL
29-
28+
#
3029
# psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-EOSQL
3130
# CREATE USER db3 WITH PASSWORD 'db3';
3231
# CREATE DATABASE db3;

0 commit comments

Comments
 (0)