2976N/A# The contents of this file are subject to the terms of the 2976N/A# Common Development and Distribution License, Version 1.0 only 2976N/A# (the "License"). You may not use this file except in compliance 2976N/A# You can obtain a copy of the license at 2976N/A# See the License for the specific language governing permissions 2976N/A# and limitations under the License. 2976N/A# When distributing Covered Code, include this CDDL HEADER in each 2976N/A# file and include the License file at 2976N/A# add the following below this CDDL HEADER, with the fields enclosed 2976N/A# by brackets "[]" replaced with your own identifying information: 2976N/A# Portions Copyright [yyyy] [name of copyright owner] 5236N/A# Copyright 2008-2010 Sun Microsystems, Inc. 6331N/A# Portions Copyright 2011 ForgeRock AS 6331N/A# Portions Copyright 2013 Jens Elkner 2976N/A# This script is used to invoke processes that might be run on server or 2976N/A# in client mode (depending on the state of the server and the arguments 2976N/A# passed). It should not be invoked directly by end users. 6331N/A# Capture the location of this script and the Directory Server install 6331N/A# and instance root so that we can use them to create appropriate paths. 6331N/A # perform a backup of a Directory Server backend 6331N/A # perform an LDIF export for a Directory Server 6331N/A # import LDIF data into a Directory Server backend 6331N/A # perform a restore of a Directory Server backend 6331N/A print -
u2 'ERROR: OPENDJ_INVOKE_CLASS environment variable is not set.' 2976N/A# Check whether is local or remote 6331N/A # Set the original values that the user had on the environment in order to 6331N/A # be sure that the script works with the proper arguments (in particular 6331N/A # if the user specified not to overwrite the environment). 6331N/A # Set the environment to use the offline properties 6331N/A # This is likely a problem with the provided arguments. 6331N/A # Launch the server utility.