update mesh installpath

This commit is contained in:
wh1te909 2022-10-25 11:34:44 -07:00
parent 16df03678c
commit 552d63ea6e
4 changed files with 22 additions and 17 deletions

View file

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