mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-12 11:20:27 +08:00
时钟同步增加是否检查chrony选项
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -85,6 +85,13 @@
|
||||
<p class="comment">可选项。默认使用<code-label>pool.ntp.org</code-label>。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-show="cluster.clock.autoSync">
|
||||
<td class="color-border">检查Chrony</td>
|
||||
<td>
|
||||
<checkbox name="clockCheckChrony" v-model="cluster.clock.checkChrony"></checkbox>
|
||||
<p class="comment">选中后,表示如果chrony(另一款时间同步软件)正在运行,则不重复执行时间同步。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>自动远程启动</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user