From be176001ea4cb8a1fa8f21990afe39a17e9c4326 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 22 Dec 2023 22:50:33 +0800 Subject: [PATCH] Update index.py --- plugins/mysql-apt/index.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/mysql-apt/index.py b/plugins/mysql-apt/index.py index 06925df35..7aa21e32c 100755 --- a/plugins/mysql-apt/index.py +++ b/plugins/mysql-apt/index.py @@ -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()