Browse Source

Reading a default ssh user while executing remote command

pull/1/head
Piotr Krawczyk 8 years ago
parent
commit
dd6b242256
  1. 2
      src/Runtime/Runtime.php

2
src/Runtime/Runtime.php

@ -407,7 +407,7 @@ class Runtime
*/
public function runRemoteCommand($cmd, $jail, $timeout = 120)
{
$user = $this->getEnvOption('user');
$user = $this->getEnvOption('user', $this->getCurrentUser());
$sudo = $this->getEnvOption('sudo', false);
$host = $this->getWorkingHost();
$sshConfig = $this->getSSHConfig();

Loading…
Cancel
Save