pull/267/head
midoks 3 years ago
parent f13290c7e8
commit 240d915913
  1. 2
      class/core/plugins_api.py
  2. 1
      route/static/app/index.js
  3. 1
      scripts/install_dev.sh

@ -154,7 +154,7 @@ class plugins_api:
'execshell', '0', time.strftime('%Y-%m-%d %H:%M:%S'), execstr)
mw.M('tasks').add('name,type,status,addtime, execstr', taskAdd)
os.mkdir(mw.getServerDir() + '/php')
# 任务执行相关
mw.triggerTask()
return mw.returnJson(True, '添加成功')

@ -840,6 +840,7 @@ function pluginInit(){
}
$.post('/plugins/init_install', 'list='+JSON.stringify(post_data), function(data){
layer.close(index);
layer.msg(data.msg, { icon: data.status ? 1 : 2 });
},'json');
});

@ -93,7 +93,6 @@ cd /www/server/mdserver-web && bash /etc/rc.d/init.d/mw start
cd /www/server/mdserver-web && bash /etc/rc.d/init.d/mw default
sleep 2
if [ ! -e /usr/bin/mw ]; then
if [ -f /etc/init.d/mw ];then
ln -s /etc/rc.d/init.d/mw /usr/bin/mw

Loading…
Cancel
Save