TYPO3 Flow Base DistributionPackagesApplications

Bug #67692

wrong ssh port option

Added by Christoph Lehmann about 1 month ago. Updated about 1 month ago.

Status:New Start date:2015-06-23
Priority:Must have Due date:
Assigned To:- % Done:

0%

Category:-
Target version:-

Description

/Packages/Application/TYPO3.Surf/Classes/TYPO3/Surf/Task/TYPO3/Flow/CopyConfigurationTask.php:65

ssh has -p and scp has the -P option for the port

History

#1 Updated by Christoph Lehmann about 1 month ago

The following works

$sshPort = $node->hasOption('port') ? '-p ' . escapeshellarg($node->getOption('port')) : '';
$scpPort = $node->hasOption('port') ? '-P ' . escapeshellarg($node->getOption('port')) : '';
$commands[] = "ssh {$sshPort} {$username}{$hostname} -C \"mkdir -p {$targetReleasePath}/Configuration/{$targetConfigurationPath}\"";
$commands[] = "scp {$scpPort} {$configuration} {$username}
{$hostname}:{$targetReleasePath}/Configuration/{$targetConfigurationPath}/";

Also available in: Atom PDF