Update system_api.py

pull/165/head
midoks 3 years ago
parent 233e6dfc0f
commit b3dc24428c
  1. 11
      class/core/system_api.py

@ -689,12 +689,11 @@ class system_api:
dist_to = toPath + "/mdserver-web-" + version dist_to = toPath + "/mdserver-web-" + version
if not os.path.exists(dist_to): if not os.path.exists(dist_to):
mw.execShell('unzip -o ' + toPath + os.system('unzip -o ' + toPath +
'/mw.zip' + ' -d ' + toPath) '/mw.zip' + ' -d ' + toPath)
cmd_cp = 'cp -rf ' + toPath + '/mdserver-web-' + \
cmd_cp = "cp -rf " + toPath + '/mdserver-web-' + \ version + '/* ' + mw.getServerDir() + '/mdserver-web'
version + "/* " + mw.getServerDir() + "/mdserver-web" mw.execShell(cmd_cp)
mw.execShell(cmd_cp)
mw.execShell('rm -rf ' + toPath + '/mdserver-web-' + version) mw.execShell('rm -rf ' + toPath + '/mdserver-web-' + version)
mw.execShell('rm -rf ' + toPath + '/mw.zip') mw.execShell('rm -rf ' + toPath + '/mw.zip')

Loading…
Cancel
Save