- 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

@ -2,6 +2,7 @@
namespace App\SSH\Services\Webserver;
use App\Exceptions\SSHError;
use App\Exceptions\SSLCreationException;
use App\Models\Site;
use App\Models\Ssl;
@ -113,7 +114,7 @@ public function changePHPVersion(Site $site, $version): void
}
/**
* @throws SSLCreationException
* @throws SSHError
*/
public function setupSSL(Ssl $ssl): void
{
@ -136,7 +137,7 @@ public function setupSSL(Ssl $ssl): void
'pk_path' => $ssl->getPkPath(),
]);
}
$result = $this->service->server->ssh()->exec(
$result = $this->service->server->ssh()->setLog($ssl->log)->exec(
$command,
'create-ssl',
$ssl->site_id