view postgres/ssdt-entrypoint.sh @ 328:1f0ff7540734

USASR-4075 Forcing Unique Admin Password
author aldrich@ssdt-ohio.org
date Wed, 04 Dec 2019 11:57:48 +0000
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 "$@"