mirror of
				https://github.com/hauke68/Magallanes.git
				synced 2025-11-04 00:50:18 +01:00 
			
		
		
		
	Reading a default ssh user while executing remote command
This commit is contained in:
		
							parent
							
								
									82225d5336
								
							
						
					
					
						commit
						dd6b242256
					
				@ -407,7 +407,7 @@ class Runtime
 | 
				
			|||||||
     */
 | 
					     */
 | 
				
			||||||
    public function runRemoteCommand($cmd, $jail, $timeout = 120)
 | 
					    public function runRemoteCommand($cmd, $jail, $timeout = 120)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $user = $this->getEnvOption('user');
 | 
					        $user = $this->getEnvOption('user', $this->getCurrentUser());
 | 
				
			||||||
        $sudo = $this->getEnvOption('sudo', false);
 | 
					        $sudo = $this->getEnvOption('sudo', false);
 | 
				
			||||||
        $host = $this->getWorkingHost();
 | 
					        $host = $this->getWorkingHost();
 | 
				
			||||||
        $sshConfig = $this->getSSHConfig();
 | 
					        $sshConfig = $this->getSSHConfig();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user