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