mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-08 07:34:59 +08:00
fix: Fix the issue where viewing logs during certificate application results in an error. (#9853)
This commit is contained in:
parent
c661cc37b3
commit
f617c9d5dd
1 changed files with 2 additions and 0 deletions
|
@ -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{
|
||||
|
|
Loading…
Add table
Reference in a new issue