fd-gentoo/www-apps/keycloak-bin/files/kc.sh
Federico Justus Denkena 9ec1b49987
www-apps/keycloak-bin: new package, add 23.0.7
Signed-off-by: Federico Justus Denkena <federico.denkena@posteo.de>
2024-03-02 14:31:14 +01:00

14 lines
404 B
Bash

#!/usr/bin/env bash
#
env_file="@EROOT@/etc/keycloak/runtime.env"
if [[ -r $env_file ]]; then
while read -r line; do
if [[ ${line} =~ ^[[:space:]]*export[[:space:]]+[[:alpha:]_][[:alnum:]_]*= ]]; then
eval "$line"
elif [[ ${line} =~ ^[[:space:]]*[[:alpha:]_][[:alnum:]_]*= ]]; then
eval "export $line"
fi
done <"$env_file"
fi
eval exec @EROOT@/opt/keycloak-bin/bin/kc.sh "$@"