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

Reply via email to