remote-exec (ssh): chmod'ing right path

This commit is contained in:
Luke Amdor 2015-05-04 15:44:44 -05:00
parent 11b4060fee
commit fbae7884eb
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ func (c *Communicator) UploadScript(path string, input io.Reader) error {
} }
cmd := &remote.Cmd{ cmd := &remote.Cmd{
Command: fmt.Sprintf("chmod 0777 %s", c.connInfo.ScriptPath), Command: fmt.Sprintf("chmod 0777 %s", path),
} }
if err := c.Start(cmd); err != nil { if err := c.Start(cmd); err != nil {
return fmt.Errorf( return fmt.Errorf(