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

jvergara
08.51.2008 b406bda40b630eab228ecafe169e9e3ca695a825
Second part of fix for issue 3126 (Cannot run setup if unziped in directory with spaces in name).

These changes allow to execute the scripts from different directories than the one the script is located at.
10 files modified
22 ■■■■ changed files
opendj-sdk/opends/resource/bin/_client-script.sh 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/bin/_mixed-script.sh 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/bin/_script-util.sh 4 ●●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/bin/_server-script.sh 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/bin/start-ds 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/bin/stop-ds 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/setup 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/uninstall 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/upgrade 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/webstart/create-webstart-standalone.sh 2 ●●● patch | view | raw | blame | history
opendj-sdk/opends/resource/bin/_client-script.sh
@@ -40,7 +40,7 @@
# root so that we can use them to create appropriate paths.
WORKING_DIR=`pwd`
cd `dirname "${0}"`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
cd ..
opendj-sdk/opends/resource/bin/_mixed-script.sh
@@ -41,7 +41,7 @@
# root so that we can use them to create appropriate paths.
WORKING_DIR=`pwd`
cd `dirname "${0}"`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
cd ..
opendj-sdk/opends/resource/bin/_script-util.sh
@@ -145,7 +145,7 @@
# Configure the appropriate CLASSPATH.
set_classpath() {
  CLASSPATH="${INSTANCE_ROOT}"/classes
  CLASSPATH=${INSTANCE_ROOT}/classes
  for JAR in "${INSTANCE_ROOT}"/lib/*.jar
  do
    CLASSPATH=${CLASSPATH}:${JAR}
@@ -160,7 +160,7 @@
  # root so that we can use them to create appropriate paths.
  WORKING_DIR=`pwd`
  cd `dirname "${0}"`
  cd "`dirname "${0}"`"
  cd ..
  INSTANCE_ROOT=`pwd`
  cd "${WORKING_DIR}"
opendj-sdk/opends/resource/bin/_server-script.sh
@@ -40,7 +40,7 @@
# root so that we can use them to create appropriate paths.
WORKING_DIR=`pwd`
cd `dirname "${0}"`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
cd ..
opendj-sdk/opends/resource/bin/start-ds
@@ -31,7 +31,7 @@
# root so that we can use them to create appropriate paths.
WORKING_DIR=`pwd`
cd `dirname "${0}"`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
cd ..
opendj-sdk/opends/resource/bin/stop-ds
@@ -40,7 +40,7 @@
# root so that we can use them to create appropriate paths.
WORKING_DIR=`pwd`
cd `dirname "${0}"`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
cd ..
opendj-sdk/opends/resource/setup
@@ -31,7 +31,7 @@
# root so that we can use them to create appropriate paths.
WORKING_DIR=`pwd`
cd `dirname "${0}"`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
INSTANCE_ROOT=${SCRIPT_DIR}
opendj-sdk/opends/resource/uninstall
@@ -33,7 +33,7 @@
# root so that we can use them to create appropriate paths.
WORKING_DIR=`pwd`
cd `dirname "${0}"`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
SCRIPT_NAME=uninstall
opendj-sdk/opends/resource/upgrade
@@ -30,7 +30,7 @@
# root so that we can use them to create appropriate paths.
WORKING_DIR=`pwd`
cd `dirname "${0}"`
cd "`dirname "${0}"`"
SCRIPT_DIR=`pwd`
INSTANCE_ROOT=${SCRIPT_DIR}
opendj-sdk/opends/resource/webstart/create-webstart-standalone.sh
@@ -3,7 +3,7 @@
# Determine the location to this script so that we know where we are in the
# OpenDS source tree.
cd `dirname $0`
cd "`dirname $0`"
SCRIPT_DIR=`pwd`
cd ../..
ROOT_DIR=`pwd`