时钟同步增加是否检查chrony选项

This commit is contained in:
GoEdgeLab
2022-11-03 14:58:32 +08:00
parent 5c40f6f8bd
commit aaabee2f6d
2 changed files with 9 additions and 0 deletions

View File

@@ -122,6 +122,7 @@ func (this *IndexAction) RunPost(params struct {
AutoOpenPorts bool
ClockAutoSync bool
ClockServer string
ClockCheckChrony bool
AutoRemoteStart bool
AutoInstallNftables bool
@@ -154,6 +155,7 @@ func (this *IndexAction) RunPost(params struct {
var clockConfig = nodeconfigs.DefaultClockConfig()
clockConfig.AutoSync = params.ClockAutoSync
clockConfig.Server = params.ClockServer
clockConfig.CheckChrony = params.ClockCheckChrony
clockConfigJSON, err := json.Marshal(clockConfig)
if err != nil {
this.ErrorPage(err)