summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Fedotov <dfedotov@pivotal.io>2017-07-24 17:50:11 +0100
committerDaniil Fedotov <dfedotov@pivotal.io>2017-07-24 17:50:11 +0100
commit2c5f833d98bb1cf6cb59606bd9decdd7ef802b60 (patch)
tree4fb76f9e009dfb6ff388ce0b81c017ae0f2df923 /scripts
parent18263db71c72fe3cf50f6d745199e2f3ee7508c3 (diff)
downloadrabbitmq-server-git-2c5f833d98bb1cf6cb59606bd9decdd7ef802b60.tar.gz
Require root or rabbitmq user for rabbitmq-plugins.
For some reason, the rabbitmq-plugins command could be run from arbitrary user, which would result in errors unable to access a cookie file or plugins configuration files. Changed to work the same way as rabbitmqctl - require root or rabbitmq user. [Fixes #149425921]
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rabbitmq-script-wrapper2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rabbitmq-script-wrapper b/scripts/rabbitmq-script-wrapper
index 9623f01709..0a2b981dc4 100644
--- a/scripts/rabbitmq-script-wrapper
+++ b/scripts/rabbitmq-script-wrapper
@@ -31,7 +31,7 @@ if [ `id -u` = `id -u rabbitmq` -a "$SCRIPT" = "rabbitmq-server" ] ; then
. "$RABBITMQ_ENV"
exec /usr/lib/rabbitmq/bin/rabbitmq-server "$@" @STDOUT_STDERR_REDIRECTION@
-elif [ `id -u` = `id -u rabbitmq` -o "$SCRIPT" = "rabbitmq-plugins" ] ; then
+elif [ `id -u` = `id -u rabbitmq` ] ; then
if [ -f $PWD/.erlang.cookie ] ; then
export HOME=.
fi