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