Reduce the fragility of the Sanity Test by not trying to access anything outside...
[controller.git] / opendaylight / distribution / opendaylight / src / main / resources / run.sh
index 6caf3e3f57c55aa0f3c2d88f70e43dde7de355b8..31bf3c6632158ecc532566c8275fa00e07d28800 100755 (executable)
@@ -10,6 +10,9 @@ fi
 
 if [[ $platform == 'linux' ]]; then
    fullpath=`readlink -f $0`
+
+   [[ -z ${JAVA_HOME} ]] && [[ -x "/usr/lib/jvm/java-1.7.0" ]] && export JAVA_HOME=`/usr/lib/jvm/java-1.7.0`;
+
 elif [[ $platform == 'osx' ]]; then
    TARGET_FILE=$0
    cd `dirname $TARGET_FILE`