mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Fixed the default JAVA_HOME value to be Java8 if not set
This commit is contained in:
parent
17787a194a
commit
6ee4a195f2
@ -34,8 +34,8 @@ for vendorconf in "@MSCONF@"/vendor/* ; do
|
||||
CLASSPATH=$vendorconf:$CLASSPATH
|
||||
done
|
||||
export CLASSPATH
|
||||
if ([ -z "$JAVA_HOME" ] || [ ! -d "$JAVA_HOME" ]) && [ -d /usr/lib/jvm/jre-1.7.0 ]; then
|
||||
export JAVA_HOME=/usr/lib/jvm/jre-1.7.0
|
||||
if ([ -z "$JAVA_HOME" ] || [ ! -d "$JAVA_HOME" ]) && [ -d /usr/lib/jvm/jre-1.8.0 ]; then
|
||||
export JAVA_HOME=/usr/lib/jvm/jre-1.8.0
|
||||
fi
|
||||
PATH=$JAVA_HOME/bin:/sbin:/usr/sbin:$PATH
|
||||
export PATH
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user