mirror of https://github.com/1Panel-dev/1Panel
fix: 修复启动 panic 问题 (#1285)
parent
911166152a
commit
203af988fa
|
@ -11,7 +11,6 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/1Panel-dev/1Panel/backend/i18n"
|
||||
"github.com/1Panel-dev/1Panel/backend/utils/files"
|
||||
"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 systemInit {
|
||||
i.Status = constant.Error
|
||||
i.Message = i18n.GetMsgByKey("ErrAppSystemRestart")
|
||||
i.Message = "1Panel restart causes the task to terminate"
|
||||
_ = appInstallRepo.Save(context.Background(), &i)
|
||||
}
|
||||
continue
|
||||
|
|
Loading…
Reference in New Issue