view postgres/ssdt-entrypoint.sh @ 213:7e24501da32b

DEP-12: add admin password reset for training instances
author smith@nwoca.org
date Fri, 06 Oct 2017 21:32:13 +0100
parents 4b8eb7301ae0
children
line wrap: on
line source
#!/bin/bash
if [ ! "$POSTGRES_PASSWORD" ]; then
   export POSTGRES_PASSWORD=$(date +%s | sha256sum | base64 | head -c 32 ; echo)
fi

docker-entrypoint.sh "$@"