mirror of
https://github.com/hauke68/Magallanes.git
synced 2025-08-25 21:00:18 +02:00
Merge pull request #326 from piomet1/master
Reading a default ssh user while executing remote command
This commit is contained in:
commit
ccb59ca095
@ -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…
Reference in New Issue
Block a user