mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 02:39:26 +08:00
Update index.py
This commit is contained in:
@@ -208,14 +208,11 @@ def isInstalledPhp():
|
||||
return False
|
||||
|
||||
def isInstalledMySQL():
|
||||
mysql_ver = ["80","81","82","83","84"]
|
||||
mysql_type = ['mysql-apt','mysql-yum', 'mysql'];
|
||||
|
||||
for mt in mysql_type:
|
||||
for ver in mysql_ver:
|
||||
mysql_install_dir = mw.getServerDir() + '/'+ mt
|
||||
if os.path.exists(mysql_install_dir):
|
||||
return True
|
||||
mysql_install_dir = mw.getServerDir() + '/'+ mt
|
||||
if os.path.exists(mysql_install_dir):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user