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 | 1e03bf1f500f9cc0d0de2eb83ba7ec5b2d8dea22 (patch) | |
tree | 4cf253cde0e5a3e42d00fa4d23285c0969e2a7af /scripts/rabbitmq-plugins | |
parent | 5882fac02e81e490c550f6e1813ca18ba9997e1e (diff) | |
download | rabbitmq-server-1e03bf1f500f9cc0d0de2eb83ba7ec5b2d8dea22.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 c5715173..cb0ab56f 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" |