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