buildx/keycloak/tools/autorun.sh
2020-07-29 16:01:00 +02:00

20 lines
455 B
Bash
Executable File

#!/bin/bash -e
cd /opt/jboss/keycloak
ENTRYPOINT_DIR=/opt/jboss/startup-scripts
if [[ -d "$ENTRYPOINT_DIR" ]]; then
# First run cli autoruns
for f in "$ENTRYPOINT_DIR"/*; do
if [[ "$f" == *.cli ]]; then
echo "Executing cli script: $f"
bin/jboss-cli.sh --file="$f"
elif [[ -x "$f" ]]; then
echo "Executing: $f"
"$f"
else
echo "Ignoring file in $ENTRYPOINT_DIR (not *.cli or executable): $f"
fi
done
fi