6331N/A#!/bin/ksh93
623N/A#
623N/A# CDDL HEADER START
623N/A#
623N/A# The contents of this file are subject to the terms of the
623N/A# Common Development and Distribution License, Version 1.0 only
623N/A# (the "License"). You may not use this file except in compliance
623N/A# with the License.
623N/A#
623N/A# You can obtain a copy of the license at
623N/A# trunk/opends/resource/legal-notices/OpenDS.LICENSE
623N/A# or https://OpenDS.dev.java.net/OpenDS.LICENSE.
623N/A# See the License for the specific language governing permissions
623N/A# and limitations under the License.
623N/A#
623N/A# When distributing Covered Code, include this CDDL HEADER in each
623N/A# file and include the License file at
623N/A# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
623N/A# add the following below this CDDL HEADER, with the fields enclosed
873N/A# by brackets "[]" replaced with your own identifying information:
623N/A# Portions Copyright [yyyy] [name of copyright owner]
623N/A#
623N/A# CDDL HEADER END
623N/A#
623N/A#
3233N/A# Copyright 2006-2008 Sun Microsystems, Inc.
5636N/A# Portions Copyright 2011 ForgeRock AS
6331N/A# Portions Copyright 2013 Jens Elkner
623N/A
2549N/A# This script may be used to uninstall the server.
6331N/A[[ ${FNTRACE} == 'ALL' || ${FNTRACE} == 'main' ]] && set -x
6331N/AINSTALL_ROOT="${.sh.file%/*}" SCRIPT_NAME=uninstall
2650N/A
6331N/A# Set env vars
6331N/A. "${INSTALL_ROOT}"/lib/_script-util.sh
6331N/AcheckEnv -i 'set-full-environment-and-test-java' "$@"
623N/A
6331N/A# Launch the uninstall process
6331N/A"${OPENDJ_JAVA_BIN}" ${OPENDJ_JAVA_ARGS} ${SCRIPT_NAME_ARG} \
6331N/A -Dorg.opends.server.InstallRoot="${INSTALL_ROOT}" \
6331N/A -Dorg.opends.server.InstanceRoot="${INSTANCE_ROOT}" \
6331N/A org.opends.guitools.uninstaller.UninstallLauncher "${@}"
2650N/A
6331N/ARC=$?
6331N/A(( ${RC} == 50 )) && exit 0 # Version info was requested
6331N/Aexit ${RC}