mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 10:21:37 +00:00
24 lines
445 B
PHP
24 lines
445 B
PHP
<?php
|
|
|
|
namespace App\SSH\PHPMyAdmin;
|
|
|
|
use App\Models\Site;
|
|
use App\SSH\HasScripts;
|
|
|
|
class PHPMyAdmin
|
|
{
|
|
use HasScripts;
|
|
|
|
public function install(Site $site): void
|
|
{
|
|
$site->server->ssh()->exec(
|
|
$this->getScript('install.sh', [
|
|
'version' => $site->type_data['version'],
|
|
'path' => $site->path,
|
|
]),
|
|
'install-phpmyadmin',
|
|
$site->id
|
|
);
|
|
}
|
|
}
|