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