mirror of https://github.com/1Panel-dev/1Panel
fix: 解决网站删除目录错误的问题 (#3632)
parent
1a9182bfde
commit
d30be34def
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue