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