blob: 311a019582f9348242cb19b3e81c5f84d9a0cb96 [file] [log] [blame]
#!/bin/sh
set -e
export POSTGRES_PASSWORD=$(mktemp -u XXXXXXXXXXXXXXXX)
kc_secret=/tmp/passwd/keycloak/secret
{
if [ ! -f ${kc_secret} ]; then
mkdir -p $(dirname ${kc_secret})
echo $(mktemp -u XXXXXXXXXXXXXXXX) >${kc_secret}
fi
chown root:postgres ${kc_secret}
chmod 440 ${kc_secret}
}
exec docker-entrypoint.sh "$@"