Update index.py

pull/125/head
midoks 3 years ago
parent 0607323d1b
commit 3ae2f0db68
  1. 11
      plugins/mariadb/index.py

@ -122,7 +122,6 @@ def pSqliteDb(dbname='databases'):
def pMysqlDb():
db = orm.ORM()
db.__DB_CNF = getConf()
db.setDbConf(getConf())
db.setPwd(pSqliteDb('config').where(
'id=?', (1,)).getField('mysql_root'))
@ -176,11 +175,13 @@ def initDreplace(version=''):
def status(version=''):
pid = getPidFile()
if not os.path.exists(pid):
try:
pid = getPidFile()
if os.path.exists(pid):
return 'start'
except Exception as e:
return 'stop'
return 'start'
return 'stop'
def getDataDir():

Loading…
Cancel
Save