Update index.py

pull/597/head
Mr Chen 11 months ago
parent 38217e7571
commit 1329a87a06
  1. 6
      plugins/mysql-apt/index.py

@ -98,6 +98,12 @@ def getDbPort():
tmp = re.search(rep, content)
return tmp.groups()[0].strip()
def getDbServerId():
file = getConf()
content = mw.readFile(file)
rep = 'server-id\s*=\s*(.*)'
tmp = re.search(rep, content)
return tmp.groups()[0].strip()
def getSocketFile():
file = getConf()

Loading…
Cancel
Save