apollo-broker-service should avoid sudo if already the right user.
------------------------------------------------------------------
Key: AMQ-3317
URL: https://issues.apache.org/jira/browse/AMQ-3317
Project: ActiveMQ
Issue Type: Improvement
Components: Apollo
Reporter: Hiram Chirino
Assignee: Hiram Chirino
Lionel Cons posted to the dev list:
{quote}
If the $APOLLO_USER runs apollo-service-broker, the script will
attempt to use sudo anyway.
I would suggest to replace:
if [ -z "$APOLLO_USER" ] ; then
by something like:
if [ -z "$APOLLO_USER" -a `id -un` != "$APOLLO_USER" ] ; then
{quote}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira