File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,9 @@ You need to specify different empty directory, like this
135
135
-e DEFAULT_COLLATION=" id_ID.utf8" \
136
136
-e DEFAULT_CTYPE=" id_ID.utf8" \
137
137
-e PASSWORD_AUTHENTICATION=" md5" \
138
- -e INITDB_EXTRA_ARGS=" <some more initdb command args>"
138
+ -e INITDB_EXTRA_ARGS=" <some more initdb command args>" \
139
+ -v pgwal-volume:/opt/postgres/pg_wal \
140
+ -e POSTGRES_INITDB_WALDIR=/opt/postgres/pg_wal
139
141
```
140
142
141
143
The containers will use above parameters to initialize a new db cluster in the
Original file line number Diff line number Diff line change @@ -387,9 +387,9 @@ function pg_password() {
387
387
if [ -z " ${POSTGRES_PASS} " ] && [ ! -f ${SETUP_LOCKFILE} ]; then
388
388
POSTGRES_PASS=$( openssl rand -base64 15)
389
389
touch ${SETUP_LOCKFILE}
390
- echo " $POSTGRES_PASS " >> /tmp/PGPASSWORD.txt
390
+ echo " $POSTGRES_PASS " > /tmp/PGPASSWORD.txt
391
391
else
392
- echo " $POSTGRES_PASS " >> /tmp/PGPASSWORD.txt
392
+ echo " $POSTGRES_PASS " > /tmp/PGPASSWORD.txt
393
393
fi
394
394
395
395
}
@@ -399,9 +399,9 @@ function replication_password() {
399
399
if [ -z " ${REPLICATION_PASS} " ] && [ ! -f ${SETUP_LOCKFILE} ]; then
400
400
REPLICATION_PASS=$( openssl rand -base64 15)
401
401
touch ${SETUP_LOCKFILE}
402
- echo " $REPLICATION_PASS " >> /tmp/REPLPASSWORD.txt
402
+ echo " $REPLICATION_PASS " > /tmp/REPLPASSWORD.txt
403
403
else
404
- echo " $REPLICATION_PASS " >> /tmp/REPLPASSWORD.txt
404
+ echo " $REPLICATION_PASS " > /tmp/REPLPASSWORD.txt
405
405
fi
406
406
407
407
}
You can’t perform that action at this time.
0 commit comments