#!/bin/ksh93 # $Id: upgrade 554 2013-04-22 09:12:58Z elkner $ # # License: CDDL 1.0 (see http://opensource.org/licenses/cddl-1.0) # Copyright 2013 Jens Elkner [[ ${FNTRACE} == 'ALL' || ${FNTRACE} == 'main' ]] && set -x INSTALL_ROOT="${.sh.file%/*}" SCRIPT_NAME='upgrade' # Set env vars . "${INSTALL_ROOT}"/lib/_script-util.sh checkEnv 'set-full-environment-and-test-java' checkInstance "$@" [[ -r ${INSTANCE_ROOT}/tmp/upgrade ]] && rm -rf "${INSTANCE_ROOT}"/tmp/upgrade # Launch the upgrade - it really uses different properties, thus we provide all "${OPENDJ_JAVA_BIN}" ${OPENDJ_JAVA_ARGS} -DINSTALL_ROOT="${INSTALL_ROOT}" \ -Dorg.opends.quicksetup.upgrader.Root="${INSTALL_ROOT}" \ -Dorg.opends.quicksetup.upgrader.Instance="${INSTANCE_ROOT}" \ -Dorg.opends.server.InstanceRoot="${INSTANCE_ROOT}" \ -classpath "${CLASSPATH}" \ org.opends.quicksetup.upgrader.UpgradeSvr4Launcher "$@"