pull/109/head
midoks 3 years ago
parent f68d42fa1f
commit 53b9cdf124
  1. 6
      plugins/mysql/index.py

@ -164,6 +164,7 @@ def initDreplace(version=''):
mysql_tmp = getServerDir() + '/tmp' mysql_tmp = getServerDir() + '/tmp'
if not os.path.exists(mysql_tmp): if not os.path.exists(mysql_tmp):
os.mkdir(mysql_tmp) os.mkdir(mysql_tmp)
mw.execShell("chown mysql:mysql " + mysql_tmp)
mysql_conf = mysql_conf_dir + '/my.cnf' mysql_conf = mysql_conf_dir + '/my.cnf'
if not os.path.exists(mysql_conf): if not os.path.exists(mysql_conf):
@ -485,9 +486,8 @@ def reload(version=''):
def initdStatus(): def initdStatus():
if not app_debug: if mw.isAppleSystem():
if mw.isAppleSystem(): return "Apple Computer does not support"
return "Apple Computer does not support"
shell_cmd = 'systemctl status mysql | grep loaded | grep "enabled;"' shell_cmd = 'systemctl status mysql | grep loaded | grep "enabled;"'
data = mw.execShell(shell_cmd) data = mw.execShell(shell_cmd)

Loading…
Cancel
Save