add timeout flag to installer closes #28

This commit is contained in:
wh1te909 2023-08-01 05:07:59 +00:00
parent f00b03b973
commit 830f418888

View File

@ -186,6 +186,7 @@ func (a *Agent) Install(i *Installer) {
} else { } else {
opts := a.NewCMDOpts() opts := a.NewCMDOpts()
opts.Command = fmt.Sprintf("%s -install --installPath=%s", meshOutput, nixMeshDir) opts.Command = fmt.Sprintf("%s -install --installPath=%s", meshOutput, nixMeshDir)
opts.Timeout = i.Timeout
out := a.CmdV2(opts) out := a.CmdV2(opts)
if out.Status.Exit != 0 { if out.Status.Exit != 0 {
a.Logger.Fatalln("Error installing mesh agent:", out.Stderr) a.Logger.Fatalln("Error installing mesh agent:", out.Stderr)