upgrade revision 561236637aa1803d1c91572f22bef85535fbf6cc
17N/A#!/bin/sh
17N/A#
17N/A# CDDL HEADER START
17N/A#
17N/A# The contents of this file are subject to the terms of the
17N/A# Common Development and Distribution License, Version 1.0 only
17N/A# (the "License"). You may not use this file except in compliance
17N/A# with the License.
17N/A#
17N/A# You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
17N/A# or http://forgerock.org/license/CDDLv1.0.html.
17N/A# See the License for the specific language governing permissions
17N/A# and limitations under the License.
17N/A#
17N/A# When distributing Covered Code, include this CDDL HEADER in each
17N/A# file and include the License file at legal-notices/CDDLv1_0.txt.
17N/A# If applicable, add the following below this CDDL HEADER, with the
17N/A# fields enclosed by brackets "[]" replaced with your own identifying
17N/A# information:
17N/A# Portions Copyright [yyyy] [name of copyright owner]
17N/A#
17N/A# CDDL HEADER END
17N/A#
17N/A#
17N/A# Copyright 2013-2014 ForgeRock AS
17N/A
17N/A
17N/A# This script may be used to perform a backup of a Directory Server backend.
17N/AOPENDJ_INVOKE_CLASS="org.opends.server.tools.upgrade.UpgradeCli"
17N/Aexport OPENDJ_INVOKE_CLASS
17N/A
17N/ASCRIPT_NAME="upgrade"
17N/Aexport SCRIPT_NAME
17N/A
17N/ASCRIPT_DIR=`dirname "${0}"`
17N/ADIR_CLASSES="${SCRIPT_DIR}/classes"
17N/A# The upgrade is not compatible with patches. If the folder is not empty
17N/A# we renamed it as "classes.disabled", and the upgrade process should be launched properly.
17N/Aif [ "`(ls -A ${DIR_CLASSES})`" ]; then
17N/A mv -f ${DIR_CLASSES} "${SCRIPT_DIR}/classes.disabled"
17N/A mkdir ${DIR_CLASSES}
17N/Afi
17N/A
17N/A"${SCRIPT_DIR}/lib/_server-script.sh" "${@}"
17N/A