diff --git a/class/core/system_api.py b/class/core/system_api.py index 53caecfe3..f976ac49d 100755 --- a/class/core/system_api.py +++ b/class/core/system_api.py @@ -597,7 +597,7 @@ class system_api: 'unzip -o mdserver-web.zip -d ' + os.getcwd() + '/') public.execShell('rm -rf mdserver-web.zip') - public.execShell('restart.sh') + public.execShell('sh restart.sh') print v_new_info return public.returnJson(False, '已经是最新,无需更新!') diff --git a/static/js/index.js b/static/js/index.js index 46937bb31..2e6b908cd 100755 --- a/static/js/index.js +++ b/static/js/index.js @@ -548,11 +548,11 @@ function updateVersion(version) { // window.location.reload(); // }, 3000); }).error(function() { - // layer.msg(lan.index.update_ok, { icon: 1 }); + layer.msg(lan.index.update_ok, { icon: 1 }); // $.get('/system?action=ReWeb', function() {}); - // setTimeout(function() { - // window.location.reload(); - // }, 3000); + setTimeout(function() { + window.location.reload(); + }, 3000); }); }