diff options
| author | Emile Joubert <emile@rabbitmq.com> | 2012-02-06 15:33:49 +0000 |
|---|---|---|
| committer | Emile Joubert <emile@rabbitmq.com> | 2012-02-06 15:33:49 +0000 |
| commit | feb304bfd384d0b6ed4286438b0d717f3c878d06 (patch) | |
| tree | f4550bb5bf01380253caef5ec0c7f15cf23e0bd2 /scripts/rabbitmq-plugins | |
| parent | b00bbc43f2b49cee2e286fff033c8f6238303008 (diff) | |
| parent | ac839d16d0b951ce2dbf338a35aada910033e702 (diff) | |
| download | rabbitmq-server-git-feb304bfd384d0b6ed4286438b0d717f3c878d06.tar.gz | |
Merged bug24655 into default
Diffstat (limited to 'scripts/rabbitmq-plugins')
| -rwxr-xr-x | scripts/rabbitmq-plugins | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/rabbitmq-plugins b/scripts/rabbitmq-plugins index 4c6cb1fa1d..14a18d5794 100755 --- a/scripts/rabbitmq-plugins +++ b/scripts/rabbitmq-plugins @@ -12,16 +12,19 @@ ## The Original Code is RabbitMQ. ## ## The Initial Developer of the Original Code is VMware, Inc. -## Copyright (c) 2007-2011 VMware, Inc. All rights reserved. +## 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" \ |
