Changeset 4362


Ignore:
Timestamp:
01/28/14 15:12:20 (10 years ago)
Author:
eric.auer@mpi.nl
Message:

check_saml_metadata.sh: Be more verbose about JAVA_HOME, as

autodetection fails for me (/usr/bin/java is a symlink to
/etc/alternatives/java which is a 2nd symlink to the real
binary, apparently the script cannot resolve 2 symlinks?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aai/check-saml-metadata/check_saml_metadata.sh

    r4361 r4362  
    22
    33if [ -z "${JAVA_HOME}" ]; then
     4    echo "JAVA_HOME was not set, trying to determine the right value..."
    45    JAVA_CMD=`which java`
    56    if [ ! -z ${JAVA_CMD} ]; then
     
    1920        fi
    2021    fi
     22    echo "Trying JAVA_HOME value: ${JAVA_HOME}"
     23    echo "If this fails, set JAVA_HOME to the directory containing your bin/java"
     24else
     25    echo "JAVA_HOME already set, value: ${JAVA_HOME}"
    2126fi
     27
    2228if [ -z "${JAVA_HOME}" ]; then
    2329    echo "*** ERROR: cannot determine JAVA_HOME"
    2430    echo "Please set JAVA_HOME environment variable the correct location and try again."
     31    echo "Example: export JAVA_HOME=/usr/lib/jvm/java-1.7.0*/j??/ # contains bin/java..."
    2532    exit 2
    2633fi
Note: See TracChangeset for help on using the changeset viewer.