Mercurial > public > ssdt-docker
annotate postgres/ssdt-entrypoint.sh @ 293:95d7d70f34a5 production v2.4.0
flow: Merged <release> 'v2.4.0' to <master> ('production').
author | smith@nwoca.org |
---|---|
date | Thu, 27 Dec 2018 00:06:14 +0000 |
parents | 4b8eb7301ae0 |
children |
rev | line source |
---|---|
116
4b8eb7301ae0
DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents:
diff
changeset
|
1 #!/bin/bash |
4b8eb7301ae0
DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents:
diff
changeset
|
2 if [ ! "$POSTGRES_PASSWORD" ]; then |
4b8eb7301ae0
DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents:
diff
changeset
|
3 export POSTGRES_PASSWORD=$(date +%s | sha256sum | base64 | head -c 32 ; echo) |
4b8eb7301ae0
DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents:
diff
changeset
|
4 fi |
4b8eb7301ae0
DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents:
diff
changeset
|
5 |
4b8eb7301ae0
DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
smith@nwoca.org
parents:
diff
changeset
|
6 docker-entrypoint.sh "$@" |