集群设置增加自动硬盘TRIM选项

This commit is contained in:
刘祥超
2024-04-04 17:04:28 +08:00
parent 20fae556d7
commit 90484aaa24
5 changed files with 20 additions and 1 deletions

View File

@@ -80,6 +80,7 @@ func (this *CreateAction) RunPost(params struct {
SystemdServiceIsOn bool
AutoInstallNftables bool
AutoSystemTuning bool
AutoTrimDisks bool
// DNS相关
DnsDomainId int64
@@ -149,6 +150,7 @@ func (this *CreateAction) RunPost(params struct {
GlobalServerConfigJSON: globalServerConfigJSON,
AutoInstallNftables: params.AutoInstallNftables,
AutoSystemTuning: params.AutoSystemTuning,
AutoTrimDisks: params.AutoTrimDisks,
})
if err != nil {
this.ErrorPage(err)