This commit is contained in:
Saeed Vaziry
2024-06-08 19:48:17 +03:30
committed by GitHub
parent 3b42f93654
commit a862a603f2
36 changed files with 1127 additions and 23 deletions

View File

@ -140,9 +140,9 @@ public function tail(string $path, int $lines): string
);
}
public function runScript(string $path, string $script, ?ServerLog $serverLog): ServerLog
public function runScript(string $path, string $script, ?ServerLog $serverLog, ?string $user = null): ServerLog
{
$ssh = $this->server->ssh();
$ssh = $this->server->ssh($user);
if ($serverLog) {
$ssh->setLog($serverLog);
}