hardcode path

This commit is contained in:
Alan Bernstein 2017-01-11 08:40:40 -06:00
parent aa5fc13e0b
commit 38933e742b

View file

@ -1547,7 +1547,7 @@ func (cmd *BspawnCommand) spawnRemote(ctx context.Context) (map[string]interface
resLock.Unlock()
}(stdout, sp.Name, i)
sess.Stderr = cmd.Stderr
err = sess.Start("PATH=.:$PATH pilosactl bagent -agent-num=" + strconv.Itoa(i) + " -hosts=" + strings.Join(cmd.PilosaHosts, ",") + " " + strings.Join(sp.Args, " "))
err = sess.Start("PATH=.:$PATH /usr/local/bin/pilosactl bagent -agent-num=" + strconv.Itoa(i) + " -hosts=" + strings.Join(cmd.PilosaHosts, ",") + " " + strings.Join(sp.Args, " "))
if err != nil {
return nil, err
}