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

Escape nested quotes in rpm init script

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.4.0-rc5, 3.5.1
    • Packaging
    • None
    • Fully Compatible
    • ALL
    • 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

            brian.samek@mongodb.com Brian Samek
            brian.samek@mongodb.com Brian Samek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: