mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +00:00
26 lines
473 B
PHP
Executable File
26 lines
473 B
PHP
Executable File
<?php
|
|
|
|
namespace App\Jobs\Installation;
|
|
|
|
use App\Models\Server;
|
|
use App\SSHCommands\SSL\InstallCertbotCommand;
|
|
use Throwable;
|
|
|
|
class InstallCertbot extends InstallationJob
|
|
{
|
|
protected Server $server;
|
|
|
|
public function __construct(Server $server)
|
|
{
|
|
$this->server = $server;
|
|
}
|
|
|
|
/**
|
|
* @throws Throwable
|
|
*/
|
|
public function handle(): void
|
|
{
|
|
$this->server->ssh()->exec(new InstallCertbotCommand(), 'install-certbot');
|
|
}
|
|
}
|