mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-09-22 16:00:51 +00:00
fix: Fix the issue where viewing logs during certificate application results in an error. (#9853)
This commit is contained in:
@@ -185,6 +185,8 @@ func (w WebsiteSSLService) Create(create request.WebsiteSSLCreate) (request.Webs
|
||||
return res, err
|
||||
}
|
||||
create.ID = websiteSSL.ID
|
||||
logFile, _ := os.OpenFile(path.Join(global.Dir.SSLLogDir, fmt.Sprintf("%s-ssl-%d.log", websiteSSL.PrimaryDomain, websiteSSL.ID)), os.O_CREATE|os.O_WRONLY|os.O_TRUNC, constant.FilePerm)
|
||||
logFile.Close()
|
||||
go func() {
|
||||
if create.Provider != constant.DnsManual {
|
||||
if err = w.ObtainSSL(request.WebsiteSSLApply{
|
||||
|
||||
Reference in New Issue
Block a user