|
|
@ -192,7 +192,7 @@ abstract class AbstractTask |
|
|
|
// if general.yml includes "ssy_needs_tty: true", then add "-t" to the ssh command |
|
|
|
// if general.yml includes "ssy_needs_tty: true", then add "-t" to the ssh command |
|
|
|
$needs_tty = ($this->getConfig()->general('ssh_needs_tty',false) ? '-t' : ''); |
|
|
|
$needs_tty = ($this->getConfig()->general('ssh_needs_tty',false) ? '-t' : ''); |
|
|
|
|
|
|
|
|
|
|
|
$localCommand = 'ssh ' . $needs_tty . ' -p ' . $this->getConfig()->getHostPort() . ' ' |
|
|
|
$localCommand = 'ssh ' . $this->getConfig()->getHostIdentityFileOption() . $needs_tty . ' -p ' . $this->getConfig()->getHostPort() . ' ' |
|
|
|
. '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ' |
|
|
|
. '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no ' |
|
|
|
. $this->getConfig()->deployment('user') . '@' . $this->getConfig()->getHostName() . ' ' |
|
|
|
. $this->getConfig()->deployment('user') . '@' . $this->getConfig()->getHostName() . ' ' |
|
|
|
. '"cd ' . rtrim($this->getConfig()->deployment('to'), '/') . $releasesDirectory . ' && ' |
|
|
|
. '"cd ' . rtrim($this->getConfig()->deployment('to'), '/') . $releasesDirectory . ' && ' |
|
|
|