diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2012-02-06 12:36:08 +0000 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2012-02-06 12:36:08 +0000 |
| commit | c5199726b4d1a3b49f9c8674ade4e095aaaeeb75 (patch) | |
| tree | e2842ee9a3cd1743c92e9517f486be8d2f4d4343 /scripts/rabbitmq-plugins | |
| parent | fe8f4c7fa80f16ec0fb21538d28fcaac4f25d510 (diff) | |
| parent | 39c55dbd9e1c67617a7ebd93ce31fca35a1e7fc7 (diff) | |
| download | rabbitmq-server-git-c5199726b4d1a3b49f9c8674ade4e095aaaeeb75.tar.gz | |
Merge bug24706.
Diffstat (limited to 'scripts/rabbitmq-plugins')
| -rwxr-xr-x | scripts/rabbitmq-plugins | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/rabbitmq-plugins b/scripts/rabbitmq-plugins index 664e95c27c..14a18d5794 100755 --- a/scripts/rabbitmq-plugins +++ b/scripts/rabbitmq-plugins @@ -15,13 +15,16 @@ ## Copyright (c) 2007-2012 VMware, Inc. All rights reserved. ## +# Get default settings with user overrides for (RABBITMQ_)<var_name> +# Non-empty defaults should be set in rabbitmq-env . `dirname $0`/rabbitmq-env -ENABLED_PLUGINS_FILE=/etc/rabbitmq/enabled_plugins +##--- Set environment vars RABBITMQ_<var_name> to defaults if not set [ "x" = "x$RABBITMQ_ENABLED_PLUGINS_FILE" ] && RABBITMQ_ENABLED_PLUGINS_FILE=${ENABLED_PLUGINS_FILE} +[ "x" = "x$RABBITMQ_PLUGINS_DIR" ] && RABBITMQ_PLUGINS_DIR=${PLUGINS_DIR} -[ "x" = "x$RABBITMQ_PLUGINS_DIR" ] && RABBITMQ_PLUGINS_DIR="${RABBITMQ_HOME}/plugins" +##--- End of overridden <var_name> variables exec erl \ -pa "${RABBITMQ_HOME}/ebin" \ |
