[ Server ] [ Status ] - refresh status part

This commit is contained in:
zeaslity
2023-12-22 16:22:28 +08:00
parent 1f8c174009
commit 36b8e36392

View File

@@ -1922,6 +1922,20 @@ func (op *AgentOsOperator) chronyToMasterExec(args []string) (bool, []string) {
ntpFile,
})
// set time zone and ntp
AllCompleteExecutor([][]string{
{
"timedatectl",
"set-timezone",
"Asia/Shanghai",
},
{
"timedatectl",
"set-ntp",
"true",
},
})
BasicPrettyPrint(AllCompleteExecutor([][]string{
{
"systemctl",