mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-10-13 16:50:18 +02:00
Merge pull request #204 from edpauto/strict-host-key-checking-fix
Add UserKnownHostsFile and StrictHostKeyChecking options to scp command
This commit is contained in:
commit
77f110f192
@ -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 New Issue
Block a user