#!/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 "$@" |