Skip to content

Commit

Permalink
fix: restart cluster failed when deployed by tgz
Browse files Browse the repository at this point in the history
  • Loading branch information
YenchangChan committed Aug 28, 2024
1 parent dbd095c commit 2c47c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/cmd_tgz.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (p *TgzPkg) StopCmd(svr, cwd string) string {
}

func (p *TgzPkg) RestartCmd(svr, cwd string) string {
return p.StopCmd(svr, cwd) + ";" + p.StartCmd(svr, cwd)
return p.StopCmd(svr, cwd) + "; sleep 5;" + p.StartCmd(svr, cwd)
}

func (p *TgzPkg) InstallCmd(svr string, pkgs Packages) string {
Expand Down

0 comments on commit 2c47c46

Please sign in to comment.