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

@ -35,14 +35,9 @@ def getInitDFile():
def getConf():
if mw.isAppleSystem():
path = getServerDir() + "/mongodb.conf"
return path
if os.path.exists("/etc/mongodb.conf"):
return "/etc/mongodb.conf"
return "/etc/mongod.conf"
def getConfTpl():
path = getPluginDir() + "/config/mongodb.conf"
@ -223,14 +218,8 @@ def initdUinstall():
def runLog():
if mw.isAppleSystem():
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):
sys = mw.execShell(

Loading…
Cancel
Save