diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/rabbitmq-env | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/rabbitmq-env b/scripts/rabbitmq-env index 40b2fa9277..167f63356f 100755 --- a/scripts/rabbitmq-env +++ b/scripts/rabbitmq-env @@ -239,13 +239,13 @@ rmq_check_if_shared_with_mnesia \ if [ -f "${RABBITMQ_HOME}/erlang.mk" ]; then # When RabbitMQ or the rabbitmq* scripts are started from the source # directory, they need the location of rabbit_common. - if [ -d "${RABBITMQ_HOME}/dist" ]; then - ERL_LIBS="${RABBITMQ_HOME}/dist:${ERL_LIBS}" + if [ -d "${RABBITMQ_PLUGINS_DIR}" ]; then + ERL_LIBS="${RABBITMQ_PLUGINS_DIR}:${ERL_LIBS}" elif [ -d "${RABBITMQ_HOME}/deps/rabbit_common/ebin" ]; then ERL_LIBS="${RABBITMQ_HOME}/deps:${ERL_LIBS}" fi if [ "${DEPS_DIR}" -a -d "$(dirname "${DEPS_DIR}")" ]; then - ERL_LIBS="$(dirname ${DEPS_DIR})/dist:${ERL_LIBS}" + ERL_LIBS="$(dirname ${DEPS_DIR})/plugins:${ERL_LIBS}" fi ERL_LIBS=${ERL_LIBS%:} export ERL_LIBS |
