mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-09-12 01:24:38 +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
|
return res, err
|
||||||
}
|
}
|
||||||
create.ID = websiteSSL.ID
|
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() {
|
go func() {
|
||||||
if create.Provider != constant.DnsManual {
|
if create.Provider != constant.DnsManual {
|
||||||
if err = w.ObtainSSL(request.WebsiteSSLApply{
|
if err = w.ObtainSSL(request.WebsiteSSLApply{
|
||||||
|
|
Loading…
Add table
Reference in a new issue