Update index.py

This commit is contained in:
Mr Chen 2023-11-18 20:44:51 +08:00
parent 235b1dc5e4
commit 81aabd3910
1 changed files with 2 additions and 13 deletions

View File

@ -215,19 +215,8 @@ def initdUinstall():
def runLog():
path = getConf()
content = mw.readFile(path)
rep = 'log\s*=\s*(.*)'
tmp = re.search(rep, content)
return tmp.groups()[0]
def getPort():
path = getConf()
content = mw.readFile(path)
rep = 'listen\s*=\s*(.*)'
tmp = re.search(rep, content)
return tmp.groups()[0]
path = getServerDir() + "/haproxy.log"
return path
if __name__ == "__main__":