activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Cons <lionel.c...@cern.ch>
Subject Use sudo in apollo-service-broker only when needed
Date Thu, 12 May 2011 10:54:14 GMT
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