mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-21 19:01:37 +00:00
25 lines
480 B
PHP
25 lines
480 B
PHP
<?php
|
|
|
|
namespace App\SSH\PHPMyAdmin;
|
|
|
|
use App\Exceptions\SSHError;
|
|
use App\Models\Site;
|
|
|
|
class PHPMyAdmin
|
|
{
|
|
/**
|
|
* @throws SSHError
|
|
*/
|
|
public function install(Site $site): void
|
|
{
|
|
$site->server->ssh($site->user)->exec(
|
|
view('ssh.phpmyadmin.install', [
|
|
'version' => $site->type_data['version'],
|
|
'path' => $site->path,
|
|
]),
|
|
'install-phpmyadmin',
|
|
$site->id
|
|
);
|
|
}
|
|
}
|