1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-09-13 20:50:18 +02:00

SSH Tweak. Accepts all host connections. No need of interaction with ssh-client for new hosts.

This commit is contained in:
Andrs Montaez 2012-02-05 14:12:21 -02:00
parent d255bf1717
commit b65632d628

View File

@ -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 . '"';