mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
20 lines
455 B
Bash
Executable File
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
|