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:
parent
bd64337f9d
commit
0ff4eab4bb
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue