feat: 增加恢复默认配置功能
This commit is contained in:
committed by
zhengkunwang223
parent
e68a21c2fc
commit
7da97bd663
@@ -201,7 +201,6 @@ func opNginx(containerName, operate string) error {
|
||||
}
|
||||
|
||||
func nginxCheckAndReload(oldContent string, filePath string, containerName string) error {
|
||||
|
||||
if err := opNginx(containerName, constant.NginxCheck); err != nil {
|
||||
_ = files.NewFileOp().WriteFile(filePath, strings.NewReader(oldContent), 0644)
|
||||
return err
|
||||
@@ -211,6 +210,5 @@ func nginxCheckAndReload(oldContent string, filePath string, containerName strin
|
||||
_ = files.NewFileOp().WriteFile(filePath, strings.NewReader(oldContent), 0644)
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user