mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-05 00:48:57 +02:00
Tweaks for issue #45
- Issue #45 - Adds "ssh_needs_tty" which appends "-t" to the ssh. - Issue #45 - Rsync is incremental if there are previous releases.
This commit is contained in:
@@ -188,9 +188,9 @@ abstract class AbstractTask
|
||||
} else {
|
||||
$releasesDirectory = '';
|
||||
}
|
||||
|
||||
|
||||
// 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() . ' '
|
||||
. '-q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '
|
||||
|
||||
Reference in New Issue
Block a user