blob: 1782d3117bbf836a7a841ad68c3728d476b044c4 [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 444 ${kc_secret}
}
exec docker-entrypoint.sh "$@"