mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 20:57:19 +08:00
feat: 发布v2.2.5
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
||||
|
||||
"github.com/TheTNB/panel/app/models"
|
||||
"github.com/TheTNB/panel/internal"
|
||||
"github.com/TheTNB/panel/pkg/tools"
|
||||
"github.com/TheTNB/panel/types"
|
||||
)
|
||||
|
||||
@@ -123,6 +124,7 @@ func (r *PluginImpl) Install(slug string) error {
|
||||
return errors.New("创建任务失败")
|
||||
}
|
||||
|
||||
_ = tools.Remove(task.Log)
|
||||
return r.task.Process(task.ID)
|
||||
}
|
||||
|
||||
@@ -168,6 +170,7 @@ func (r *PluginImpl) Uninstall(slug string) error {
|
||||
return errors.New("创建任务失败")
|
||||
}
|
||||
|
||||
_ = tools.Remove(task.Log)
|
||||
return r.task.Process(task.ID)
|
||||
}
|
||||
|
||||
@@ -213,5 +216,6 @@ func (r *PluginImpl) Update(slug string) error {
|
||||
return errors.New("创建任务失败")
|
||||
}
|
||||
|
||||
_ = tools.Remove(task.Log)
|
||||
return r.task.Process(task.ID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user