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