blob: 311a019582f9348242cb19b3e81c5f84d9a0cb96 [file] [log] [blame]
Nico Huber5d7a1cb2023-07-23 19:36:14 +00001#!/bin/sh
2
3set -e
4
5export POSTGRES_PASSWORD=$(mktemp -u XXXXXXXXXXXXXXXX)
6
7kc_secret=/tmp/passwd/keycloak/secret
8{
9 if [ ! -f ${kc_secret} ]; then
10 mkdir -p $(dirname ${kc_secret})
11 echo $(mktemp -u XXXXXXXXXXXXXXXX) >${kc_secret}
12 fi
13 chown root:postgres ${kc_secret}
14 chmod 440 ${kc_secret}
15}
16
17exec docker-entrypoint.sh "$@"