hotpocket/services/keycloak/entrypoint.sh
Tomek Wójcik b4338e2769
Some checks failed
CI / Checks (push) Failing after 13m2s
Release v1.0.0
2025-08-20 21:00:50 +02:00

15 lines
339 B
Bash
Executable File

#!/bin/bash
set -e
if [ -d /opt/import ];then
if [ ! -f /opt/kcsetup/realm-imported ];then
echo "Importing realm from /opt/import..."
/opt/keycloak/bin/kc.sh import --dir /opt/import
touch /opt/kcsetup/realm-imported
else
echo "Realm already imported!"
fi
fi
exec /opt/keycloak/bin/kc.sh "$@"