13 lines
369 B
Cheetah
13 lines
369 B
Cheetah
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
{{ if eq (env "CUSTOM_THEME_ENABLED") "1" }}
|
||
|
microdnf update && microdnf install git
|
||
|
git clone "$CUSTOM_THEME_URL" "/opt/jboss/keycloak/themes/$CUSTOM_THEME_NAME"
|
||
|
{{ end }}
|
||
|
|
||
|
# upstream entrypoint
|
||
|
# https://github.com/keycloak/keycloak-containers/blob/aa2e5515ccb05116e49ab38839d8fcfdd17c45aa/server/Dockerfile#L30
|
||
|
/usr/local/bin/entrypoint.sh "$@"
|