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