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