#!/bin/sh

. "$(dirname "$(readlink -f "$0")")"/../../ovirt-engine/bin/engine-prolog.sh

"${JAVA_HOME}/bin/java" \
	-Djava.security.auth.login.config="${ENGINE_USR}/conf/jaas.conf" \
	-Djava.util.logging.config.file="${OVIRT_LOGGING_PROPERTIES}" \
	-Djboss.modules.write-indexes=false \
	-Dorg.ovirt.engine.aaa.jdbc.programName="${0}" \
	-Dorg.ovirt.engine.aaa.jdbc.engineEtc="${ENGINE_ETC}" \
	-jar "${JBOSS_HOME}/jboss-modules.jar" \
	-dependencies org.ovirt.engine.extension.aaa.jdbc \
	-class org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli \
	"$@"

# Log message about execution
rc=$?
result=$([[ ${rc} == 0 ]] && echo -n "successfully." || echo -n "with failure.")
params="$(echo "$@" | sed 's/password=pass\:[^[:space:]]*/password=pass\:*** /g')"
logger "User '${USER}' executed '$0 ${params}' ${result}"
exit ${rc}

#!/bin/sh

. "$(dirname "$(readlink -f "$0")")"/../../ovirt-engine/bin/engine-prolog.sh

"${JAVA_HOME}/bin/java" \
	--add-modules java.se \
	-Djava.security.auth.login.config="${ENGINE_USR}/conf/jaas.conf" \
	-Djava.util.logging.config.file="${OVIRT_LOGGING_PROPERTIES}" \
	-Djboss.modules.write-indexes=false \
	-Dorg.ovirt.engine.aaa.jdbc.programName="${0}" \
	-Dorg.ovirt.engine.aaa.jdbc.engineEtc="${ENGINE_ETC}" \
	-jar "${JBOSS_HOME}/jboss-modules.jar" \
	-dependencies org.ovirt.engine.extension.aaa.jdbc \
	-class org.ovirt.engine.extension.aaa.jdbc.binding.cli.Cli \
	"$@"

# Log message about execution
rc=$?
result=$([[ ${rc} == 0 ]] && echo -n "successfully." || echo -n "with failure.")
params="$(echo "$@" | sed 's/password=pass\:[^[:space:]]*/password=pass\:*** /g')"
logger "User '${USER}' executed '$0 ${params}' ${result}"
exit ${rc}

Fix execution of aaa-jdbc-tool on OpenJDK 11
Fix execution of aaa-jdbc-tool on OpenJDK 11

Change-Id: I4f1919b39d01a7275554a8ae0116d8c3df6e59b7
Bug-Url: https://bugzilla.redhat.com/1734720
Signed-off-by: Martin Perina <7bf83f5b771f1cc16b652b5fe02fa33310bda7b0@redhat.com>
