Mercurial > public > ssdt-docker
diff postgres/ssdt-entrypoint.sh @ 116:4b8eb7301ae0
DEP-12: update to postgres 9.4.11. add script to generate unique postgres password
author | smith@nwoca.org |
---|---|
date | Thu, 27 Apr 2017 17:51:12 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/postgres/ssdt-entrypoint.sh Thu Apr 27 17:51:12 2017 -0400 @@ -0,0 +1,6 @@ +#!/bin/bash +if [ ! "$POSTGRES_PASSWORD" ]; then + export POSTGRES_PASSWORD=$(date +%s | sha256sum | base64 | head -c 32 ; echo) +fi + +docker-entrypoint.sh "$@" \ No newline at end of file