Update index.py

This commit is contained in:
Mr Chen
2023-12-22 22:50:33 +08:00
parent 3bea21bb94
commit be176001ea
+6
View File
@@ -251,6 +251,12 @@ def getDataDir():
tmp = re.search(rep, content)
return tmp.groups()[0].strip()
def getLogBinName():
file = getConf()
content = mw.readFile(file)
rep = 'log-bin\s*=\s*(.*)'
tmp = re.search(rep, content)
return tmp.groups()[0].strip()
def getPidFile():
file = getConf()