This commit is contained in:
redanthrax 2022-06-15 15:03:13 -07:00
parent d1df98ad3e
commit 6457ad290f

View File

@ -146,11 +146,11 @@ func (a *Agent) Install(i *Installer) {
arch = "32" arch = "32"
} }
var installerMeshSystemEXE string var installerMeshSystemBin string
if len(i.MeshDir) > 0 { if len(i.MeshDir) > 0 {
installerMeshSystemEXE = filepath.Join(i.MeshDir, "MeshAgent.exe") installerMeshSystemBin = filepath.Join(i.MeshDir, "MeshAgent.exe")
} else { } else {
installerMeshSystemEXE = a.MeshSystemBin installerMeshSystemBin = a.MeshSystemBin
} }
var meshNodeID string var meshNodeID string
@ -178,7 +178,7 @@ func (a *Agent) Install(i *Installer) {
a.Logger.Debugln("Mesh agent:", mesh) a.Logger.Debugln("Mesh agent:", mesh)
time.Sleep(1 * time.Second) time.Sleep(1 * time.Second)
meshNodeID, err = a.installMesh(mesh, installerMeshSystemEXE, i.Proxy) meshNodeID, err = a.installMesh(mesh, installerMeshSystemBin, i.Proxy)
if err != nil { if err != nil {
a.installerMsg(fmt.Sprintf("Failed to install mesh agent: %s", err.Error()), "error", i.Silent) a.installerMsg(fmt.Sprintf("Failed to install mesh agent: %s", err.Error()), "error", i.Silent)
} }