blob: 5f3454d151d7536cf4cd621af9401b3c665a6184 [file] [log] [blame]
Nico Huberf4fbab52023-07-25 10:57:08 +00001#!/bin/sh
2
3set -e
4
Nico Huber472cfc72023-07-25 14:20:55 +00005secret() {
6 seed=$(cat /run/secrets/seed)
7 printf "%s:%40s" "${seed}" "$*" | sha256sum | sed 's/[[:space:]].*//'
Nico Huberf4fbab52023-07-25 10:57:08 +00008}
9
Nico Huber472cfc72023-07-25 14:20:55 +000010export KC_DB_PASSWORD=$(secret db:keycloak)
11
12exec setpriv --reuid=keycloak --regid=root --init-groups --inh-caps=-all /opt/keycloak/bin/kc.sh "$@"