mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Violette Roche-Montane
05.29.2014 6b64e3682966ba128ae2025033bc6c5ff4c15a8a
opendj-sdk/opends/resource/upgrade
@@ -32,13 +32,13 @@
SCRIPT_NAME="upgrade"
export SCRIPT_NAME
DIR_CLASSES="./classes"
SCRIPT_DIR=`dirname "${0}"`
DIR_CLASSES="${SCRIPT_DIR}/classes"
# The upgrade is not compatible with patches. If the folder is not empty
# we renamed it as "classes.disabled", and the upgrade process should be launched properly.
if [ "`(ls -A ${DIR_CLASSES})`" ]; then
    mv -f ${DIR_CLASSES} "./classes.disabled"
    mv -f ${DIR_CLASSES} "${SCRIPT_DIR}/classes.disabled"
    mkdir ${DIR_CLASSES}
fi
SCRIPT_DIR=`dirname "${0}"`
"${SCRIPT_DIR}/lib/_server-script.sh" "${@}"