Update system_api.py

This commit is contained in:
midoks
2020-07-15 12:15:15 +08:00
parent 960b9f8588
commit 1e1d54623e
+1
View File
@@ -676,6 +676,7 @@ class system_api:
mw.execShell('unzip -o ' + toPath + '/mw.zip' + ' -d ./')
mw.execShell('unzip -o mw.zip -d ./')
mw.execShell('rm -f mw.zip')
mw.execShell('service mw restart')
return mw.returnJson(True, '安装更新成功!')
return mw.returnJson(False, '已经是最新,无需更新!')