karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [karaf] branch karaf-4.2.x updated: [KARAF-6189] Don't overwrite JAVA_HOME on gentoo system
Date Fri, 08 Mar 2019 14:40:05 GMT
This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch karaf-4.2.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.2.x by this push:
     new 33ed4f2  [KARAF-6189] Don't overwrite JAVA_HOME on gentoo system
33ed4f2 is described below

commit 33ed4f2e54d5019052dc20ee213e14df348e5a80
Author: Jean-Baptiste Onofré <jb@nanthrax.net>
AuthorDate: Fri Mar 8 13:37:32 2019 +0100

    [KARAF-6189] Don't overwrite JAVA_HOME on gentoo system
---
 assemblies/features/base/src/main/filtered-resources/resources/bin/inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assemblies/features/base/src/main/filtered-resources/resources/bin/inc b/assemblies/features/base/src/main/filtered-resources/resources/bin/inc
index c4cf29f..313e680 100644
--- a/assemblies/features/base/src/main/filtered-resources/resources/bin/inc
+++ b/assemblies/features/base/src/main/filtered-resources/resources/bin/inc
@@ -194,7 +194,7 @@ locateJava() {
     if [ "x${JAVA_HOME}" = "x" ] && [ "${darwin}" = "true" ]; then
         JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"
     fi
-    if [ "x${JAVA}" = "x" ] && [ -r /etc/gentoo-release ] ; then
+    if [ "x${JAVA_HOME}" = "x" ] && [ -r /etc/gentoo-release ] ; then
         JAVA_HOME=$(java-config --jre-home)
     fi
     if [ "x${JAVA}" = "x" ]; then


Mime
View raw message