mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
25.35.2007 b7bbff3851444b4390c87e23a846c5bdcab2700f
opends/resource/bin/start-ds
@@ -103,6 +103,25 @@
SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=start-ds"
export SCRIPT_NAME_ARG
# Test that the provided JDK is 1.5 compatible.
if test -z "${JAVA_ARGS}"
then
  "${JAVA_BIN}" org.opends.server.tools.InstallDS -t 2> /dev/null
  if test ${?} -ne 0
  then
    echo "ERROR:  The detected Java version could not be used.  Please set "
    echo "        JAVA_HOME to the root of a Java 5.0 installation."
    exit 1
  fi
else
  "${JAVA_BIN}" ${JAVA_ARGS} org.opends.server.tools.InstallDS -t 2> /dev/null
  if test ${?} -ne 0
  then
    echo "ERROR:  The detected Java version could not be used with the specified"
    echo "Java arguments.  Please set  JAVA_HOME to the root of a Java 5.0 installation."
    exit 1
  fi
fi
# See if the provided set of arguments were sufficient for us to be able to
# start the server or perform the requested operation.  An exit code of 99