mirror of
https://github.com/gotoeasy/glogcenter.git
synced 2025-09-15 12:58:34 +08:00
fix untar
This commit is contained in:
parent
1452133f77
commit
55ab1e0585
@ -99,7 +99,10 @@ func checkAndCopyDataFromRemote() {
|
||||
}
|
||||
|
||||
// 解压
|
||||
cmn.UnTar(tarfile, conf.GetStorageRoot())
|
||||
storeName := cmn.Split(cmn.FileName(tarfile), ".")[1] // download.logdata-20221030.1491888244752784461.tar => logdata-20221030
|
||||
distDir := filepath.Join(conf.GetStorageRoot(), storeName)
|
||||
cmn.MkdirAll(distDir)
|
||||
cmn.UnTar(tarfile, distDir)
|
||||
|
||||
// 保存信息
|
||||
sysdb := sysmnt.NewSysmntStorage()
|
||||
@ -141,7 +144,10 @@ func checkAndCopyDataFromRemote() {
|
||||
}
|
||||
|
||||
// 解压
|
||||
cmn.UnTar(tarfile, conf.GetStorageRoot())
|
||||
storeName := cmn.Split(cmn.FileName(tarfile), ".")[1] // download.logdata-20221030.1491888244752784461.tar => logdata-20221030
|
||||
distDir := filepath.Join(conf.GetStorageRoot(), storeName)
|
||||
cmn.MkdirAll(distDir)
|
||||
cmn.UnTar(tarfile, distDir)
|
||||
|
||||
// 保存信息
|
||||
sysdb := sysmnt.NewSysmntStorage()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user