activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiram Chirino <hi...@hiramchirino.com>
Subject Re: Use sudo in apollo-service-broker only when needed
Date Thu, 12 May 2011 13:48:11 GMT
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 <lionel.cons@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
>

Mime
View raw message