diff options
| author | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-26 11:33:40 +0100 |
|---|---|---|
| committer | Alexandru Scvortov <alexandru@rabbitmq.com> | 2011-09-26 11:33:40 +0100 |
| commit | b40e1084efac1f3f8a4f998371050caf4cb87bb6 (patch) | |
| tree | 4cf253cde0e5a3e42d00fa4d23285c0969e2a7af /scripts/rabbitmq-plugins | |
| parent | 94c2476a2ebc3db11c106fdba03640ed85f34ea7 (diff) | |
| download | rabbitmq-server-git-b40e1084efac1f3f8a4f998371050caf4cb87bb6.tar.gz | |
use a specialized wrapper for rabbitmq-plugins
All the scripts assume that they are run as ${RABBITMQ_HOME}/bin/script_name
and use this to extract RABBITMQ_HOME, so we do need a minimal wrapper for
rabbitmq-plugins.
I don't know if the 'cd /var/lib/rabbitmq' is necessary; it probably isn't for
rabbitmq-plugins, but might as well leave it in.
Diffstat (limited to 'scripts/rabbitmq-plugins')
| -rwxr-xr-x | scripts/rabbitmq-plugins | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/rabbitmq-plugins b/scripts/rabbitmq-plugins index c57151733e..cb0ab56f18 100755 --- a/scripts/rabbitmq-plugins +++ b/scripts/rabbitmq-plugins @@ -17,7 +17,9 @@ . `dirname $0`/rabbitmq-env -[ "x" = "x$RABBITMQ_ENABLED_PLUGINS_FILE" ] && RABBITMQ_ENABLED_PLUGINS_FILE=/etc/rabbitmq/enabled_plugins +ENABLED_PLUGINS_FILE=/etc/rabbitmq/enabled_plugins + +[ "x" = "x$RABBITMQ_ENABLED_PLUGINS_FILE" ] && RABBITMQ_ENABLED_PLUGINS_FILE=${ENABLED_PLUGINS_FILE} [ "x" = "x$RABBITMQ_PLUGINS_DIST_DIR" ] && RABBITMQ_PLUGINS_DIST_DIR="${RABBITMQ_HOME}/plugins" |
