Skip to content

Commit a3cc3fb

Browse files
committed
[crontab] disbale crontab task
1 parent 5757225 commit a3cc3fb

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

cli/dingoadm.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ func Execute() {
3939
os.Exit(1)
4040
}
4141

42-
yes, err := curveadm.Upgrade()
43-
if err != nil {
44-
os.Exit(1)
45-
} else if yes {
46-
os.Exit(0)
47-
}
42+
//yes, err := curveadm.Upgrade()
43+
//if err != nil {
44+
// os.Exit(1)
45+
//} else if yes {
46+
// os.Exit(0)
47+
//}
4848

4949
id := curveadm.PreAudit(time.Now(), os.Args[1:])
5050
cmd := command.NewCurveAdmCommand(curveadm)

internal/task/task/common/start_service.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ func NewStartServiceTask(curveadm *cli.DingoAdm, dc *topology.DeployConfig) (*ta
113113
t.AddStep(&step.Lambda{
114114
Lambda: WaitContainerStart(3),
115115
})
116-
t.AddStep(&step.ContainerExec{
117-
ContainerId: &containerId,
118-
Command: fmt.Sprintf(CMD_ADD_CONTABLE, CURVE_CRONTAB_FILE),
119-
Success: &success,
120-
Out: &out,
121-
ExecOptions: curveadm.ExecOptions(),
122-
})
116+
//t.AddStep(&step.ContainerExec{
117+
// ContainerId: &containerId,
118+
// Command: fmt.Sprintf(CMD_ADD_CONTABLE, CURVE_CRONTAB_FILE),
119+
// Success: &success,
120+
// Out: &out,
121+
// ExecOptions: curveadm.ExecOptions(),
122+
//})
123123
t.AddStep(&Step2CheckPostStart{
124124
Host: dc.GetHost(),
125125
Role: dc.GetRole(),

internal/tui/common/prompt.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var (
8888
"{{- if .logpath}}",
8989
color.CyanString(" * Log: ") + "{{.logpath}}",
9090
"{{- end}}",
91-
color.CyanString(" * WeChat: ") + "{{.wechat}}",
91+
// color.CyanString(" * WeChat: ") + "{{.wechat}}",
9292
}, "\n")
9393

9494
PROMPT_AUTO_UPGRADE = strings.Join([]string{
@@ -215,7 +215,7 @@ func PromptErrorCode(code int, description, clue, logpath string) string {
215215
if len(logpath) > 0 {
216216
prompt.data["logpath"] = logpath
217217
}
218-
prompt.data["wechat"] = "opencurve_bot"
218+
//prompt.data["wechat"] = "opencurve_bot"
219219

220220
return prompt.Build()
221221
}

0 commit comments

Comments
 (0)