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