fix: 解决网站删除目录错误的问题 (#3632)

pull/3645/head
zhengkunwang 2024-01-17 18:15:59 +08:00 committed by GitHub
parent 1a9182bfde
commit d30be34def
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ func delNginxConfig(website model.Website, force bool) error {
if err := fileOp.DeleteFile(configPath); err != nil {
return err
}
sitePath := path.Join(constant.AppInstallDir, constant.AppOpenresty, nginxInstall.Name, "www", "sites", website.PrimaryDomain)
sitePath := path.Join(constant.AppInstallDir, constant.AppOpenresty, nginxInstall.Name, "www", "sites", website.Alias)
if fileOp.Stat(sitePath) {
_ = fileOp.DeleteDir(sitePath)
}