setup revision 6122
7199N/A#!/bin/sh
7199N/A#
7199N/A# CDDL HEADER START
7199N/A#
7199N/A# The contents of this file are subject to the terms of the
7199N/A# Common Development and Distribution License, Version 1.0 only
7199N/A# (the "License"). You may not use this file except in compliance
7199N/A# with the License.
7199N/A#
7199N/A# You can obtain a copy of the license at
7199N/A# trunk/opends/resource/legal-notices/OpenDS.LICENSE
7199N/A# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
7199N/A# See the License for the specific language governing permissions
7199N/A# and limitations under the License.
7199N/A#
7199N/A# When distributing Covered Code, include this CDDL HEADER in each
7199N/A# file and include the License file at
7199N/A# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
7199N/A# add the following below this CDDL HEADER, with the fields enclosed
7199N/A# by brackets "[]" replaced with your own identifying information:
7199N/A# Portions Copyright [yyyy] [name of copyright owner]
7199N/A#
7199N/A# CDDL HEADER END
7199N/A#
7199N/A#
7199N/A# Copyright 2006-2008 Sun Microsystems, Inc.
7199N/A# Portions Copyright 2011-2013 ForgeRock AS
7199N/A
7199N/A
7199N/A# Capture the current working directory so that we can change to it later.
7199N/A# Then capture the location of this script and the Directory Server instance
7199N/A# root so that we can use them to create appropriate paths.
7199N/AWORKING_DIR=`pwd`
7199N/A
7199N/Acd "`dirname "${0}"`"
7199N/ASCRIPT_DIR=`pwd`
7199N/A
7199N/AINSTALL_ROOT=${SCRIPT_DIR}
7199N/Aexport INSTALL_ROOT
7199N/A
7199N/ASCRIPT_NAME=setup
7199N/Aexport SCRIPT_NAME
7199N/A
7199N/Acd "${WORKING_DIR}"
7199N/A
7199N/A# Set environment variables
7199N/ASCRIPT_UTIL_CMD=set-full-environment-and-test-java
7199N/Aexport SCRIPT_UTIL_CMD
7199N/A. "${INSTALL_ROOT}/lib/_script-util.sh"
7199N/ARETURN_CODE=$?
7199N/Aif test ${RETURN_CODE} -ne 0
7199N/Athen
7199N/A exit ${RETURN_CODE}
7199N/Afi
7199N/A
7199N/A# Launch the setup process.
7199N/A"${OPENDJ_JAVA_BIN}" ${OPENDJ_JAVA_ARGS} ${SCRIPT_ARGS} ${SCRIPT_NAME_ARG} \
7199N/A org.opends.quicksetup.installer.SetupLauncher "${@}"
7199N/A
7199N/A# return part
7199N/ARETURN_CODE=$?
7199N/Aif test ${RETURN_CODE} -eq 50
7199N/Athen
7199N/A # Version info was on requested
7199N/A exit 0
7199N/Aelse
7199N/A exit ${RETURN_CODE}
7199N/Afi
7199N/A