mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 08:00:53 +00:00
fix snapshot recover tar extraction (#12777)
This commit is contained in:
@@ -1332,6 +1332,9 @@ func (f FileOp) TarGzExtractPro(src, dst string, secret string) error {
|
||||
global.LOG.Debug(commands)
|
||||
}
|
||||
cmdMgr := cmd.NewCommandMgr(cmd.WithWorkDir(dst), cmd.WithIgnoreExist1())
|
||||
if len(secret) == 0 {
|
||||
return cmdMgr.Run("tar", "zxvf", src)
|
||||
}
|
||||
return cmdMgr.RunBashC(commands)
|
||||
}
|
||||
func CopyCustomAppFile(srcPath, dstPath string) error {
|
||||
|
||||
Reference in New Issue
Block a user