Use JRE directory for JRE_HOME for RHEL-based os

It's needed for calling 'keytool' command, which needed for registering
SSL certs.

Related-bug: #1488101

Change-Id: I02e71ec0b33a4c6788cd0ac5b29ab7bea915b940
This commit is contained in:
Sergey Reshetnyak 2015-08-24 17:08:46 +03:00
parent bd64337f9d
commit 0ff4eab4bb
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ case "$DISTRO_NAME" in
fedora | rhel | centos | centos7 )
# NOTE: rpm -E "%{java_home}" command returns wrong java home
# on CentOS, Fedora and RHEL
JRE_HOME="/usr/lib/jvm/java-openjdk"
JDK_HOME="$JRE_HOME"
JRE_HOME="/usr/lib/jvm/java-openjdk/jre"
JDK_HOME="/usr/lib/jvm/java-openjdk"
;;
esac