Nico Huber | f4fbab5 | 2023-07-25 10:57:08 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
Nico Huber | 472cfc7 | 2023-07-25 14:20:55 +0000 | [diff] [blame^] | 5 | secret() { |
| 6 | seed=$(cat /run/secrets/seed) |
| 7 | printf "%s:%40s" "${seed}" "$*" | sha256sum | sed 's/[[:space:]].*//' |
Nico Huber | f4fbab5 | 2023-07-25 10:57:08 +0000 | [diff] [blame] | 8 | } |
| 9 | |
Nico Huber | 472cfc7 | 2023-07-25 14:20:55 +0000 | [diff] [blame^] | 10 | export KC_DB_PASSWORD=$(secret db:keycloak) |
| 11 | |
| 12 | exec setpriv --reuid=keycloak --regid=root --init-groups --inh-caps=-all /opt/keycloak/bin/kc.sh "$@" |