mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-12 04:30:53 +08:00
fix: Fixed the issue with The child node cannot update the certificate (#10219)
This commit is contained in:
parent
f2335d313c
commit
bc95e47b92
2 changed files with 4 additions and 1 deletions
|
|
@ -650,7 +650,7 @@ func (w WebsiteSSLService) Upload(req request.WebsiteSSLUpload) error {
|
||||||
}
|
}
|
||||||
pemData = reset
|
pemData = reset
|
||||||
}
|
}
|
||||||
if pemData == nil {
|
if pemData == nil || cert == nil {
|
||||||
return buserr.New("ErrSSLCertificateFormat")
|
return buserr.New("ErrSSLCertificateFormat")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1172,6 +1172,9 @@ func UpdateSSLConfig(websiteSSL model.WebsiteSSL) error {
|
||||||
return buserr.WithErr("ErrSSLApply", err)
|
return buserr.WithErr("ErrSSLApply", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if !global.IsMaster {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
enable, sslID := GetSystemSSL()
|
enable, sslID := GetSystemSSL()
|
||||||
if enable && sslID == websiteSSL.ID {
|
if enable && sslID == websiteSSL.ID {
|
||||||
fileOp := files.NewFileOp()
|
fileOp := files.NewFileOp()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue