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