Files
keycloak/testsuite/integration-arquillian/servers/app-server/jboss/common/install-patch.sh
T
Akbar Husain 3f62bb4d2b Make shebang in bash scripts consistent (#37369)
Closes #34983

Signed-off-by: akbarhusainpatel <apatel@intermiles.com>
2026-02-17 11:32:28 +01:00

24 lines
467 B
Bash
Executable File

#!/usr/bin/env bash
echo "JBOSS_HOME=$JBOSS_HOME"
if [ ! -d "$JBOSS_HOME/bin" ] ; then
>&2 echo "JBOSS_HOME/bin doesn't exist"
exit 1
fi
cd $JBOSS_HOME/bin
RESULT=0
patches=$(echo $APP_PATCH_ZIPS | tr "," "\n")
for patch in $patches
do
if [[ $patch == http* ]];
then
wget -O ./patch.zip $patch >/dev/null 2>&1
patch=./patch.zip
fi
./jboss-cli.sh --command="patch apply $patch"
if [ $? -ne 0 ]; then exit 1; fi
done
exit 0