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

jvergara
08.51.2008 9d64e122c4551afa5a6ccc72d4a85e911360437e
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
opends/resource/bin/_client-script.sh 2 ●●● patch | view | raw | blame | history
opends/resource/bin/_mixed-script.sh 2 ●●● patch | view | raw | blame | history
opends/resource/bin/_script-util.sh 4 ●●●● patch | view | raw | blame | history
opends/resource/bin/_server-script.sh 2 ●●● patch | view | raw | blame | history
opends/resource/bin/start-ds 2 ●●● patch | view | raw | blame | history
opends/resource/bin/stop-ds 2 ●●● patch | view | raw | blame | history
opends/resource/setup 2 ●●● patch | view | raw | blame | history
opends/resource/uninstall 2 ●●● patch | view | raw | blame | history
opends/resource/upgrade 2 ●●● patch | view | raw | blame | history
opends/resource/webstart/create-webstart-standalone.sh 2 ●●● patch | view | raw | blame | history
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 ..
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 ..
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}"
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 ..
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 ..
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 ..
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}
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
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}
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`