Update index.py

This commit is contained in:
midoks 2022-06-13 13:19:54 +08:00
parent 91d78984db
commit 9e7a1dbab0
1 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,8 @@ def getConf():
if mw.isAppleSystem():
path = getServerDir() + "/mongodb.conf"
return path
osInfo = mw.getOs()
print(osInfo)
return "/etc/mongod.conf"
@ -244,7 +246,7 @@ def initdUinstall():
def runLog():
if mw.isAppleSystem():
return getServerDir() + '/logs/mongodb.log'
return "/var/log/mongodb/mongod.log"
return "/var/log/mongodb/mongodb.log"
if __name__ == "__main__":
func = sys.argv[1]