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