pull/437/head
midoks 2 years ago
parent 04e6b9367a
commit c55c3c23d1
  1. 17
      plugins/mongodb/index.py

@ -35,13 +35,8 @@ def getInitDFile():
def getConf(): def getConf():
if mw.isAppleSystem(): path = getServerDir() + "/mongodb.conf"
path = getServerDir() + "/mongodb.conf" return path
return path
if os.path.exists("/etc/mongodb.conf"):
return "/etc/mongodb.conf"
return "/etc/mongod.conf"
def getConfTpl(): def getConfTpl():
@ -223,13 +218,7 @@ def initdUinstall():
def runLog(): def runLog():
if mw.isAppleSystem(): return getServerDir() + '/logs/mongodb.log'
return getServerDir() + '/logs/mongodb.log'
if os.path.exists("/var/log/mongodb/mongodb.log"):
return "/var/log/mongodb/mongodb.log"
return "/var/log/mongodb/mongod.log"
def installPreInspection(version): def installPreInspection(version):

Loading…
Cancel
Save