mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
13 lines
393 B
Bash
Executable File
13 lines
393 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -n "$KEYCLOAK_STATISTICS" ]; then
|
|
IFS=',' read -ra metrics <<< "$KEYCLOAK_STATISTICS"
|
|
for file in /opt/jboss/tools/cli/metrics/*.cli; do
|
|
name=${file##*/}
|
|
base=${name%.cli}
|
|
if [[ $KEYCLOAK_STATISTICS == *"$base"* ]] || [[ $KEYCLOAK_STATISTICS == *"all"* ]]; then
|
|
$JBOSS_HOME/bin/jboss-cli.sh --file="$file" >& /dev/null
|
|
fi
|
|
done
|
|
fi
|