blob: 1782d3117bbf836a7a841ad68c3728d476b044c4 [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}
Nico Huberf4fbab52023-07-25 10:57:08 +000014 chmod 444 ${kc_secret}
Nico Huber5d7a1cb2023-07-23 19:36:14 +000015}
16
17exec docker-entrypoint.sh "$@"