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