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

This commit is contained in:
vramik authored and Stian Thorgersen committed 2017-11-30 12:58:11 +01:00
1 parent 7b03eed9c8
commit 6bb04617a6
3 files changed
+8 -1

No files matched your search

@@ -0,0 +1,5 @@
if (result == success) of /subsystem=elytron/:read-resource
echo Removing Elytron subsystem
/subsystem=elytron/:remove
echo
end-if
@@ -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
@@ -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>