Escape nested quotes in rpm init script

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.4.0-rc5, 3.5.1
    • Affects Version/s: None
    • Component/s: Packaging
    • None
    • Fully Compatible
    • ALL
    • Build 2016-11-21
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
      

            Assignee:
            Brian Samek
            Reporter:
            Brian Samek
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: