setup revision d319724fed3be916a9f68676aac6eb203d44b551
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#!/bin/sh
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg#
92108a6c4fd7ca6e9acc94d2485920436763e491sf# CDDL HEADER START
2b82678319a66fd9caad8827ca9b38d2412a5abdminfrin#
2b82678319a66fd9caad8827ca9b38d2412a5abdminfrin# The contents of this file are subject to the terms of the
c0da461d68518e8f89f4070a709ba1e56381247cminfrin# Common Development and Distribution License, Version 1.0 only
c0da461d68518e8f89f4070a709ba1e56381247cminfrin# (the "License"). You may not use this file except in compliance
c0da461d68518e8f89f4070a709ba1e56381247cminfrin# with the License.
797fb211307298a8a6984c0edc0d8972b35eeac1minfrin#
797fb211307298a8a6984c0edc0d8972b35eeac1minfrin# You can obtain a copy of the license at
797fb211307298a8a6984c0edc0d8972b35eeac1minfrin# trunk/opends/resource/legal-notices/OpenDS.LICENSE
797fb211307298a8a6984c0edc0d8972b35eeac1minfrin# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
f27c90ecdefe634bd5f9c529d8658d3a3b441303minfrin# See the License for the specific language governing permissions
f27c90ecdefe634bd5f9c529d8658d3a3b441303minfrin# and limitations under the License.
f27c90ecdefe634bd5f9c529d8658d3a3b441303minfrin#
80cabec6752622e0db5421af61502bfda95715eaminfrin# When distributing Covered Code, include this CDDL HEADER in each
80cabec6752622e0db5421af61502bfda95715eaminfrin# file and include the License file at
80cabec6752622e0db5421af61502bfda95715eaminfrin# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
a2e1bbb77dd09c6a60f2dc18f831000e49add31eminfrin# add the following below this CDDL HEADER, with the fields enclosed
a2e1bbb77dd09c6a60f2dc18f831000e49add31eminfrin# by brackets "[]" replaced with your own identifying information:
a2e1bbb77dd09c6a60f2dc18f831000e49add31eminfrin# Portions Copyright [yyyy] [name of copyright owner]
a2e1bbb77dd09c6a60f2dc18f831000e49add31eminfrin#
a2e1bbb77dd09c6a60f2dc18f831000e49add31eminfrin# CDDL HEADER END
a2e1bbb77dd09c6a60f2dc18f831000e49add31eminfrin#
deec48c67d4786bc77112ffbf3a4e70b931097edminfrin#
deec48c67d4786bc77112ffbf3a4e70b931097edminfrin# Copyright 2006-2008 Sun Microsystems, Inc.
deec48c67d4786bc77112ffbf3a4e70b931097edminfrin
deec48c67d4786bc77112ffbf3a4e70b931097edminfrin
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin# Capture the current working directory so that we can change to it later.
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin# Then capture the location of this script and the Directory Server instance
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrin# root so that we can use them to create appropriate paths.
6d601599d3d65df0410eae6e573e75b2dbfb1fb4minfrinWORKING_DIR=`pwd`
40d570cf1420f497bcac59045d4ce477f0b5d891minfrin
40d570cf1420f497bcac59045d4ce477f0b5d891minfrincd "`dirname "${0}"`"
40d570cf1420f497bcac59045d4ce477f0b5d891minfrinSCRIPT_DIR=`pwd`
edab53cc0be707fa71968a95c696b19f0e6c4736minfrin
edab53cc0be707fa71968a95c696b19f0e6c4736minfrinINSTALL_ROOT=${SCRIPT_DIR}
edab53cc0be707fa71968a95c696b19f0e6c4736minfrinexport INSTALL_ROOT
806e9ba570ef48df4bfd8364e2f4d57381388a11minfrin
806e9ba570ef48df4bfd8364e2f4d57381388a11minfrinSCRIPT_NAME=setup
806e9ba570ef48df4bfd8364e2f4d57381388a11minfrinexport SCRIPT_NAME
806e9ba570ef48df4bfd8364e2f4d57381388a11minfrin
806e9ba570ef48df4bfd8364e2f4d57381388a11minfrincd "${WORKING_DIR}"
0754dde4b645ccd88fdb6c2961c0bdd7b213bdbaminfrin
0754dde4b645ccd88fdb6c2961c0bdd7b213bdbaminfrin# Set environment variables
0754dde4b645ccd88fdb6c2961c0bdd7b213bdbaminfrinSCRIPT_UTIL_CMD=set-full-environment-and-test-java
a4273e3e513ce8f5e1311c320cbd334cc382950eminfrinexport SCRIPT_UTIL_CMD
a4273e3e513ce8f5e1311c320cbd334cc382950eminfrin. "${INSTALL_ROOT}/lib/_script-util.sh"
a4273e3e513ce8f5e1311c320cbd334cc382950eminfrinRETURN_CODE=$?
d3e0a61e1bcc497f2efd7af41a5a9d77090ecc1cminfrinif test ${RETURN_CODE} -ne 0
a4273e3e513ce8f5e1311c320cbd334cc382950eminfrinthen
d3e0a61e1bcc497f2efd7af41a5a9d77090ecc1cminfrin exit ${RETURN_CODE}
d3e0a61e1bcc497f2efd7af41a5a9d77090ecc1cminfrinfi
1aac1c71105133d669960501bdf2274e63561054minfrin
1aac1c71105133d669960501bdf2274e63561054minfrin# Launch the setup process.
1aac1c71105133d669960501bdf2274e63561054minfrin"${OPENDS_JAVA_BIN}" ${OPENDS_JAVA_ARGS} ${SCRIPT_NAME_ARG} org.opends.quicksetup.installer.SetupLauncher "${@}"
2c487ac43b583db869e743772a7a10b278aa2bcfminfrin
2c487ac43b583db869e743772a7a10b278aa2bcfminfrin# return part
2c487ac43b583db869e743772a7a10b278aa2bcfminfrinRETURN_CODE=$?
2c487ac43b583db869e743772a7a10b278aa2bcfminfrinif test ${RETURN_CODE} -eq 50
2c487ac43b583db869e743772a7a10b278aa2bcfminfrinthen
dbf5f584c62fe6030d81121fdddeb7588b78b867sf # Version info was on requested
dbf5f584c62fe6030d81121fdddeb7588b78b867sf exit 0
15320dc646e41d3eb38736978500349c4d66dc0dsfelse
15320dc646e41d3eb38736978500349c4d66dc0dsf exit ${RETURN_CODE}
691db92094897494d6c31326108da20088bc175etrawickfi
691db92094897494d6c31326108da20088bc175etrawick