fix: 修复启动 panic 问题 (#1285)

This commit is contained in:
zhengkunwang223 2023-06-08 10:58:10 +08:00 committed by GitHub
parent 911166152a
commit 203af988fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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