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