- 2.x - sites finishing

This commit is contained in:
Saeed Vaziry
2024-10-06 16:06:51 +02:00
parent 3c50e2c947
commit c24b4b7333
82 changed files with 1250 additions and 345 deletions

View File

@ -51,7 +51,7 @@ public function init(Server $server, ?string $asUser = null): self
return $this;
}
public function setLog(ServerLog $log): self
public function setLog(?ServerLog $log): self
{
$this->log = $log;
@ -93,7 +93,6 @@ public function connect(bool $sftp = false): void
*/
public function exec(string $command, string $log = '', ?int $siteId = null, ?bool $stream = false, ?callable $streamCallback = null): string
{
ds($command);
if (! $this->log && $log) {
$this->log = ServerLog::make($this->server, $log);
if ($siteId) {