This commit is contained in:
dami
2025-11-23 11:57:54 +08:00
parent 50a000f1c7
commit 575723b860
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -177,6 +177,9 @@ def uncompress(sfile, dfile, path):
elif extension == 'xz':
cmd += "&& tar -Jxvf " + sfile + " -C " + dfile + " > " + tmps + " 2>&1 &"
mw.execShell(cmd)
elif extension == 'bz2':
cmd += "&& tar -xjvf " + sfile + " -C " + dfile + " > " + tmps + " 2>&1 &"
mw.execShell(cmd)
if os.path.exists(dfile):
if dfile.startswith("/www/wwwroot"):