[ Server ] [ Status ] - refresh status part
This commit is contained in:
@@ -1922,6 +1922,20 @@ func (op *AgentOsOperator) chronyToMasterExec(args []string) (bool, []string) {
|
|||||||
ntpFile,
|
ntpFile,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// set time zone and ntp
|
||||||
|
AllCompleteExecutor([][]string{
|
||||||
|
{
|
||||||
|
"timedatectl",
|
||||||
|
"set-timezone",
|
||||||
|
"Asia/Shanghai",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"timedatectl",
|
||||||
|
"set-ntp",
|
||||||
|
"true",
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
BasicPrettyPrint(AllCompleteExecutor([][]string{
|
BasicPrettyPrint(AllCompleteExecutor([][]string{
|
||||||
{
|
{
|
||||||
"systemctl",
|
"systemctl",
|
||||||
|
|||||||
Reference in New Issue
Block a user