diff options
author | Marnie McCormack <marnie@apache.org> | 2006-10-10 13:41:58 +0000 |
---|---|---|
committer | Marnie McCormack <marnie@apache.org> | 2006-10-10 13:41:58 +0000 |
commit | 2aff895b356e575f42efad97c227500acb6ee613 (patch) | |
tree | 7f83ef92231f7a28bb048223748e4db51253f1a1 | |
parent | 3a0eda85d85b3185d3fec6dec6700c6ca1fe3818 (diff) | |
download | qpid-python-2aff895b356e575f42efad97c227500acb6ee613.tar.gz |
Added $QPID_WORK variable to allow configuration of writable dirs after install as per QPID-30
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@454736 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | java/common/bin/qpid-run | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/java/common/bin/qpid-run b/java/common/bin/qpid-run index e8fd84051c..a45b5a9692 100644 --- a/java/common/bin/qpid-run +++ b/java/common/bin/qpid-run @@ -36,6 +36,11 @@ if [ -z "$QPID_HOME" ]; then die "QPID_HOME must be set" fi +if [ -z "$QPID_WORK" ]; then + echo Setting QPID_WORK to $HOME as default + QPID_WORK=$HOME +fi + program=$(basename $0) sourced=${BASH_SOURCE[0]} if [[ -z ${sourced:-''} ]]; then @@ -172,9 +177,10 @@ done if $cygwin; then QPID_HOME=$(cygpath -w $QPID_HOME) CLASSPATH=$(cygpath -w -p $CLASSPATH) + QPID_WORK=$(cygpath -w $QPID_WORK) JAVA=$(cygpath -u $JAVA) fi -COMMAND=($JAVA $JAVA_VM $JAVA_MEM -Damqj.logging.level=$AMQJ_LOGGING_LEVEL -DQPID_HOME=$QPID_HOME $JAVA_OPTS $QPID_OPTS "${JAVA_ARGS[@]}") +COMMAND=($JAVA $JAVA_VM $JAVA_MEM -Damqj.logging.level=$AMQJ_LOGGING_LEVEL -DQPID_HOME=$QPID_HOME -DQPID_WORK=$QPID_WORK $JAVA_OPTS $QPID_OPTS "${JAVA_ARGS[@]}") DISPATCH |