mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 08:19:15 +08:00
fix: 修复启动 panic 问题 (#1285)
This commit is contained in:
parent
911166152a
commit
203af988fa
@ -11,7 +11,6 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/1Panel-dev/1Panel/backend/i18n"
|
|
||||||
"github.com/1Panel-dev/1Panel/backend/utils/files"
|
"github.com/1Panel-dev/1Panel/backend/utils/files"
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
|
|
||||||
@ -362,7 +361,7 @@ func (a *AppInstallService) SyncAll(systemInit bool) error {
|
|||||||
if i.Status == constant.Installing || i.Status == constant.Upgrading {
|
if i.Status == constant.Installing || i.Status == constant.Upgrading {
|
||||||
if systemInit {
|
if systemInit {
|
||||||
i.Status = constant.Error
|
i.Status = constant.Error
|
||||||
i.Message = i18n.GetMsgByKey("ErrAppSystemRestart")
|
i.Message = "1Panel restart causes the task to terminate"
|
||||||
_ = appInstallRepo.Save(context.Background(), &i)
|
_ = appInstallRepo.Save(context.Background(), &i)
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user