blob: 5f3454d151d7536cf4cd621af9401b3c665a6184 [file] [log] [blame]
#!/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 "$@"