update
This commit is contained in:
@@ -22,3 +22,5 @@ pyyaml
|
|||||||
pycryptodome
|
pycryptodome
|
||||||
telepot-mod
|
telepot-mod
|
||||||
Flask-Dropzone
|
Flask-Dropzone
|
||||||
|
lxml
|
||||||
|
pillow
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
psutil
|
psutil
|
||||||
pycryptodome
|
|
||||||
gevent
|
gevent
|
||||||
gevent-websocket
|
gevent-websocket
|
||||||
celery==5.0.5
|
celery==5.0.5
|
||||||
redis
|
redis
|
||||||
lxml
|
|
||||||
pillow
|
|
||||||
selenium==3.141.0
|
selenium==3.141.0
|
||||||
|
|||||||
@@ -331,6 +331,7 @@ class PluginManager:
|
|||||||
name = zip_filename.split('.')[0]
|
name = zip_filename.split('.')[0]
|
||||||
|
|
||||||
plugin_all_path = os.path.join(F.config['path_data'], 'plugins')
|
plugin_all_path = os.path.join(F.config['path_data'], 'plugins')
|
||||||
|
os.makedirs(plugin_all_path, exist_ok=True)
|
||||||
plugin_path = os.path.join(plugin_all_path, name)
|
plugin_path = os.path.join(plugin_all_path, name)
|
||||||
plugin_info = None
|
plugin_info = None
|
||||||
if os.path.exists(plugin_path):
|
if os.path.exists(plugin_path):
|
||||||
@@ -382,6 +383,7 @@ class PluginManager:
|
|||||||
if plugin_git and plugin_git.startswith('http'):
|
if plugin_git and plugin_git.startswith('http'):
|
||||||
command = ['git', '-C', plugin_all_path, 'clone', plugin_git + '.git', '--depth', '1']
|
command = ['git', '-C', plugin_all_path, 'clone', plugin_git + '.git', '--depth', '1']
|
||||||
log = SupportSubprocess.execute_command_return(command)
|
log = SupportSubprocess.execute_command_return(command)
|
||||||
|
F.logger.debug(log)
|
||||||
if os.path.exists(plugin_path):
|
if os.path.exists(plugin_path):
|
||||||
ret['ret'] = 'success'
|
ret['ret'] = 'success'
|
||||||
ret['msg'] = '정상적으로 설치하였습니다. 재시작시 적용됩니다.<br>' + '<br>'.join(log['log'].split('\n'))
|
ret['msg'] = '정상적으로 설치하였습니다. 재시작시 적용됩니다.<br>' + '<br>'.join(log['log'].split('\n'))
|
||||||
|
|||||||
Reference in New Issue
Block a user