Skip to content

Commit

Permalink
feat: 删除部分代码 (#3301)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengkunwang223 committed Dec 13, 2023
1 parent 91a895e commit b93ea93
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions backend/app/service/website.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"encoding/pem"
"errors"
"fmt"
"github.com/1Panel-dev/1Panel/backend/utils/common"
"os"
"path"
"reflect"
Expand Down Expand Up @@ -1249,7 +1248,6 @@ func (w WebsiteService) ChangePHPVersion(req request.WebsitePHPVersionReq) error
phpDir = path.Join(constant.RuntimeDir, runtime.Type, runtime.Name, "php")
oldFmContent, _ = fileOp.GetContent(fpmConfDir)
newComposeByte []byte
supervisorDir = path.Join(appInstall.GetPath(), "supervisor")
)
envParams := make(map[string]string, len(envs))
handleMap(envs, envParams)
Expand Down Expand Up @@ -1291,21 +1289,6 @@ func (w WebsiteService) ChangePHPVersion(req request.WebsitePHPVersionReq) error
return busErr
}
}
if common.CompareVersion(appDetail.Version, "7.0") && !fileOp.Stat(supervisorDir) {
if appDetail.Update {
app, err := appRepo.GetFirst(commonRepo.WithByID(appDetail.AppId))
if err != nil {
busErr = err
return busErr
}
if busErr = downloadApp(app, appDetail, nil); err != nil {
return busErr
}
}
if busErr = fileOp.CopyDir(path.Join(phpDir, "supervisor"), appInstall.GetPath()); err != nil {
return busErr
}
}

if out, err := compose.Up(appInstall.GetComposePath()); err != nil {
if out != "" {
Expand Down

0 comments on commit b93ea93

Please sign in to comment.