KEYCLOAK-5802 fix install-adapters.sh script for wildfly10 and below

This commit is contained in:
vramik 2017-11-07 14:50:08 +01:00 committed by Stian Thorgersen
parent 7b03eed9c8
commit 6bb04617a6
3 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,5 @@
if (result == success) of /subsystem=elytron/:read-resource
echo Removing Elytron subsystem
/subsystem=elytron/:remove
echo
end-if

View file

@ -25,9 +25,10 @@ do
./jboss-cli.sh -c --file="adapter-install.cli"
if [ "$ELYTRON_SUPPORTED" = true ]; then
echo "Installing elytron adapter."
./jboss-cli.sh -c --file="adapter-elytron-install.cli"
else
./jboss-cli.sh -c --command="/subsystem=elytron:remove"
./jboss-cli.sh -c --file="$CLI_PATH/remove-elytron-subsystem.cli"
fi
if [ $? -ne 0 ]; then RESULT=1; fi

View file

@ -226,6 +226,7 @@
<JBOSS_HOME>${app.server.jboss.home}</JBOSS_HOME>
<SAML_SUPPORTED>${app.server.saml.adapter.supported}</SAML_SUPPORTED>
<ELYTRON_SUPPORTED>${app.server.elytron.adapter.supported}</ELYTRON_SUPPORTED>
<CLI_PATH>${common.resources}/cli</CLI_PATH>
</environmentVariables>
</configuration>
</execution>