Uploaded image for project: 'ActiveMQ Apollo (Retired)'
  1. ActiveMQ Apollo (Retired)
  2. APLO-8

apollo-broker-service should avoid sudo if already the right user.

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0-beta2
    • 1.0-beta3
    • apollo-cli, apollo-distro
    • None

    Description

      Lionel Cons posted to the dev list:

      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

      Attachments

        Activity

          People

            chirino Hiram R. Chirino
            chirino Hiram R. Chirino
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment