mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:29:26 +08:00
Update index.py
This commit is contained in:
@@ -1018,9 +1018,10 @@ def get_src_info(args):
|
||||
data['databases'] = conn.field('id,name,ps').order("id desc").select()
|
||||
data['plugin'] = []
|
||||
|
||||
webssh_dir = mw.getServerDir() + '/webssh'
|
||||
plugin_webssh_name = "name"
|
||||
webssh_dir = mw.getServerDir() + '/'+plugin_webssh_name
|
||||
if os.path.exists(webssh_dir):
|
||||
data['plugin'].append(webssh_dir)
|
||||
data['plugin'].append(plugin_webssh_name)
|
||||
|
||||
return data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user