You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by Lionel Cons <li...@cern.ch> on 2011/05/12 12:54:14 UTC
Use sudo in apollo-service-broker only when needed
Hiram,
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
Cheers,
Lionel
Re: Use sudo in apollo-service-broker only when needed
Posted by Hiram Chirino <hi...@hiramchirino.com>.
Good idea! Opened https://issues.apache.org/jira/browse/AMQ-3317 to track.
Regards,
Hiram
FuseSource
Web: http://fusesource.com/
Connect at CamelOne May 24-26
The Open Source Integration Conference
On Thu, May 12, 2011 at 6:54 AM, Lionel Cons <li...@cern.ch> wrote:
> Hiram,
>
> 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
>
> Cheers,
>
> Lionel
>