Browse Source

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

1.0
Andrs Montaez 13 years ago
parent
commit
b65632d628
  1. 2
      Mage/Task/TaskAbstract.php

2
Mage/Task/TaskAbstract.php

@ -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…
Cancel
Save