#!/bin/sh | |
set -e | |
secret() { | |
seed=$(cat /run/secrets/seed) | |
printf "%s:%40s" "${seed}" "$*" | sha256sum | sed 's/[[:space:]].*//' | |
} | |
export KC_DB_PASSWORD=$(secret db:keycloak) | |
exec setpriv --reuid=keycloak --regid=root --init-groups --inh-caps=-all /opt/keycloak/bin/kc.sh "$@" |