Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27087

Escape nested quotes in rpm init script

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0-rc5, 3.5.1
    • Component/s: Packaging
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      Build 2016-11-21

      Description

      Nested quotes are not properly escaped here https://github.com/mongodb/mongo/blob/master/rpm/init.d-mongod#L41, causing PIDFILEPATH and PIDDIR to not get set.

      sudo service mongod status
      /etc/init.d/mongod: command substitution: line 41: unexpected EOF while looking for matching `''
      /etc/init.d/mongod: command substitution: line 42: syntax error: unexpected end of file
      dirname: missing operand
      Try 'dirname --help' for more information.
      mongod is stopped
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: