fix panel ssl config
This commit is contained in:
@@ -318,10 +318,10 @@ func (s *SettingService) Save(tx *gorm.DB, changes []model.Changes) error {
|
|||||||
json.Unmarshal(change.Obj, &obj)
|
json.Unmarshal(change.Obj, &obj)
|
||||||
|
|
||||||
// Secure file existance check
|
// Secure file existance check
|
||||||
if key == "webCertFile" ||
|
if obj != "" && (key == "webCertFile" ||
|
||||||
key == "webKeyFile" ||
|
key == "webKeyFile" ||
|
||||||
key == "subCertFile" ||
|
key == "subCertFile" ||
|
||||||
key == "subKeyFile" {
|
key == "subKeyFile") {
|
||||||
err = s.fileExists(obj)
|
err = s.fileExists(obj)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return common.NewError(" -> ", obj, " is not exists")
|
return common.NewError(" -> ", obj, " is not exists")
|
||||||
|
|||||||
Reference in New Issue
Block a user