mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -295,6 +295,10 @@ def binLog(version=''):
|
||||
return mw.returnJson(False, '0')
|
||||
con = con.replace('#log-bin=mysql-bin', 'log-bin=mysql-bin')
|
||||
con = con.replace('#binlog_format=mixed', 'binlog_format=mixed')
|
||||
|
||||
con = con.replace('#skip-log-bin', 'skip-log-bin')
|
||||
con = con.replace('#disable-log-bin', 'disable-log-bin')
|
||||
con = con.replace('#skip-slave-start', 'skip-slave-start')
|
||||
mw.writeFile(conf, con)
|
||||
mw.execShell('sync')
|
||||
restart(version)
|
||||
@@ -310,6 +314,10 @@ def binLog(version=''):
|
||||
return mw.returnJson(True, dsize)
|
||||
con = con.replace('log-bin=mysql-bin', '#log-bin=mysql-bin')
|
||||
con = con.replace('binlog_format=mixed', '#binlog_format=mixed')
|
||||
|
||||
con = con.replace('skip-log-bin', '#skip-log-bin')
|
||||
con = con.replace('disable-log-bin', '#disable-log-bin')
|
||||
con = con.replace('skip-slave-start', '#skip-slave-start')
|
||||
mw.writeFile(conf, con)
|
||||
mw.execShell('sync')
|
||||
restart(version)
|
||||
|
||||
Reference in New Issue
Block a user