[ Agent ] [ Executor ] - 新增chrony部分

This commit is contained in:
zeaslity
2023-11-08 11:33:18 +08:00
parent d0309a69fa
commit 81363abf20
3 changed files with 122 additions and 9 deletions

View File

@@ -44,6 +44,10 @@ public enum BaseFunctionEnum {
"安装Harbor, 默认为2.1.0版本"
),
INSTALL_CHRONY(
"installChrony",
"安装Chrony服务器"
),
CHRONY_TO_PUBLIC_NTP(
"chronyToPublicNTP",

View File

@@ -62,8 +62,9 @@ public class FuncServiceImpl implements FuncService {
}
if (syncResultLog
.get(0)
.get(syncResultLog.size() - 1)
.endsWith("true")) {
log.debug(
"基本脚本调用成功 => {}",
syncResultLog