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} |
Nico Huber | f4fbab5 | 2023-07-25 10:57:08 +0000 | [diff] [blame^] | 14 | chmod 444 ${kc_secret} |
Nico Huber | 5d7a1cb | 2023-07-23 19:36:14 +0000 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | exec docker-entrypoint.sh "$@" |