mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-09-13 12:40:18 +02:00
SSH Tweak. Accepts all host connections. No need of interaction with ssh-client for new hosts.
This commit is contained in:
parent
d255bf1717
commit
b65632d628
@ -45,7 +45,7 @@ abstract class Mage_Task_TaskAbstract
|
|||||||
$releasesDirectory = '';
|
$releasesDirectory = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$localCommand = 'ssh '
|
$localCommand = 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no '
|
||||||
. $this->_config->deployment('user') . '@' . $this->_config->getHost() . ' '
|
. $this->_config->deployment('user') . '@' . $this->_config->getHost() . ' '
|
||||||
. '"cd ' . rtrim($this->_config->deployment('to'), '/') . $releasesDirectory . ' && '
|
. '"cd ' . rtrim($this->_config->deployment('to'), '/') . $releasesDirectory . ' && '
|
||||||
. $command . '"';
|
. $command . '"';
|
||||||
|
Loading…
Reference in New Issue
Block a user