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