Nico Huber | 5d7a1cb | 2023-07-23 19:36:14 +0000 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | set -e | ||||
4 | |||||
5 | export POSTGRES_PASSWORD=$(mktemp -u XXXXXXXXXXXXXXXX) | ||||
6 | |||||
7 | kc_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 | |||||
17 | exec docker-entrypoint.sh "$@" |