refactor: Encode delimiter in SshMultiplexingHelper
This commit is contained in:
parent
69553ec314
commit
dd3ff38df7
1 changed files with 1 additions and 0 deletions
|
|
@ -139,6 +139,7 @@ public static function generateSshCommand(Server $server, string $command)
|
|||
$ssh_command .= self::getCommonSshOptions($server, $sshKeyLocation, config('constants.ssh.connection_timeout'), config('constants.ssh.server_interval'));
|
||||
|
||||
$delimiter = Hash::make($command);
|
||||
$delimiter = base64_encode($delimiter);
|
||||
$command = str_replace($delimiter, '', $command);
|
||||
|
||||
$ssh_command .= "{$server->user}@{$server->ip} 'bash -se' << \\$delimiter".PHP_EOL
|
||||
|
|
|
|||
Loading…
Reference in a new issue