1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 16:29:17 +08:00

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