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.
| | |
| | | # root so that we can use them to create appropriate paths. |
| | | WORKING_DIR=`pwd` |
| | | |
| | | cd `dirname "${0}"` |
| | | cd "`dirname "${0}"`" |
| | | SCRIPT_DIR=`pwd` |
| | | |
| | | cd .. |
| | |
| | | # root so that we can use them to create appropriate paths. |
| | | WORKING_DIR=`pwd` |
| | | |
| | | cd `dirname "${0}"` |
| | | cd "`dirname "${0}"`" |
| | | SCRIPT_DIR=`pwd` |
| | | |
| | | cd .. |
| | |
| | | |
| | | # 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} |
| | |
| | | # 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}" |
| | |
| | | # root so that we can use them to create appropriate paths. |
| | | WORKING_DIR=`pwd` |
| | | |
| | | cd `dirname "${0}"` |
| | | cd "`dirname "${0}"`" |
| | | SCRIPT_DIR=`pwd` |
| | | |
| | | cd .. |
| | |
| | | # root so that we can use them to create appropriate paths. |
| | | WORKING_DIR=`pwd` |
| | | |
| | | cd `dirname "${0}"` |
| | | cd "`dirname "${0}"`" |
| | | SCRIPT_DIR=`pwd` |
| | | |
| | | cd .. |
| | |
| | | # root so that we can use them to create appropriate paths. |
| | | WORKING_DIR=`pwd` |
| | | |
| | | cd `dirname "${0}"` |
| | | cd "`dirname "${0}"`" |
| | | SCRIPT_DIR=`pwd` |
| | | |
| | | cd .. |
| | |
| | | # 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} |
| | |
| | | # 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 |
| | |
| | | # 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} |
| | |
| | | |
| | | # 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` |