mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-19 22:15:05 +02:00
[#202] Remove inconsistency in ssh options
Add UserKnownHostsFile and StrictHostKeyChecking to scp command in TarGz strategy.
This commit is contained in:
parent
a45802acea
commit
5a1f2502d2
|
@ -92,8 +92,12 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy Tar Gz to Remote Host
|
// Copy Tar Gz to Remote Host
|
||||||
$command = 'scp ' . $strategyFlags . ' ' . $this->getConfig()->getHostIdentityFileOption() . $this->getConfig()->getConnectTimeoutOption() . '-P ' . $this->getConfig()->getHostPort() . ' ' . $localTarGz . '.tar.gz '
|
$command = 'scp ' . $strategyFlags . ' ' . $this->getConfig()->getHostIdentityFileOption()
|
||||||
. $this->getConfig()->deployment('user') . '@' . $this->getConfig()->getHostName() . ':' . $deployToDirectory;
|
. $this->getConfig()->getConnectTimeoutOption() . '-P ' . $this->getConfig()->getHostPort()
|
||||||
|
. " -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "
|
||||||
|
. ' ' . $localTarGz . '.tar.gz '
|
||||||
|
. $this->getConfig()->deployment('user') . '@' . $this->getConfig()->getHostName() . ':'
|
||||||
|
. $deployToDirectory;
|
||||||
$result = $this->runCommandLocal($command) && $result;
|
$result = $this->runCommandLocal($command) && $result;
|
||||||
|
|
||||||
// Strategy Flags
|
// Strategy Flags
|
||||||
|
|
Loading…
Reference in a new issue