mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 11:47:36 +08:00
Merge pull request #1068 from GLYASAI/delete-cache
New Feature: delete builder cache
This commit is contained in:
commit
11b07e26e3
@ -70,6 +70,7 @@ func NewExportApp(in []byte, m *exectorManager) (TaskWorker, error) {
|
||||
|
||||
//Run Run
|
||||
func (i *ExportApp) Run(timeout time.Duration) error {
|
||||
defer os.RemoveAll(i.SourceDir)
|
||||
// disable Md5 checksum
|
||||
// if ok := i.isLatest(); ok {
|
||||
// i.updateStatus("success")
|
||||
|
@ -118,6 +118,9 @@ func (b *BackupAPPRestore) Run(timeout time.Duration) error {
|
||||
if err := util.CheckAndCreateDir(cacheDir); err != nil {
|
||||
return fmt.Errorf("create cache dir error %s", err.Error())
|
||||
}
|
||||
// delete the cache data
|
||||
defer os.RemoveAll(cacheDir)
|
||||
|
||||
b.cacheDir = cacheDir
|
||||
switch backup.BackupMode {
|
||||
case "full-online":
|
||||
|
Loading…
Reference in New Issue
Block a user