You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2012/09/18 15:50:38 UTC

svn commit: r1387161 - /karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service

Author: jbonofre
Date: Tue Sep 18 13:50:37 2012
New Revision: 1387161

URL: http://svn.apache.org/viewvc?rev=1387161&view=rev
Log:
[KARAF-1756] Fix the wrapper readlink test

Modified:
    karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service

Modified: karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
URL: http://svn.apache.org/viewvc/karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service?rev=1387161&r1=1387160&r2=1387161&view=diff
==============================================================================
--- karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service (original)
+++ karaf/trunk/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service Tue Sep 18 13:50:37 2012
@@ -18,7 +18,7 @@
 # ------------------------------------------------------------------------
 
 # JAVA_HOME, trying the JDK first and fallback to JRE
-if [ `whichlink readlink` ]; then
+if [ `which readlink` ]; then
   [ -z $JAVA_HOME ] && [ -x /usr/bin/javac ] && export JAVA_HOME="$(readlink -f /usr/bin/javac | sed 's:/bin/javac::')"
   [ -z $JAVA_HOME ] && [ -x /usr/bin/java ] && export JAVA_HOME="$(readlink -f /usr/bin/java | sed 's:/bin/java::')"
 fi