This commit is contained in:
Saeed Vaziry
2023-07-02 12:47:50 +02:00
commit 5c72f12490
825 changed files with 41659 additions and 0 deletions

View File

@ -0,0 +1,29 @@
<?php
namespace App\SSHCommands;
use Illuminate\Support\Facades\File;
class InstallMysqlCommand extends Command
{
protected $version;
public function __construct($version)
{
$this->version = $version;
}
public function file(string $os): string
{
if ($this->version == '8.0') {
return File::get(base_path('system/commands/ubuntu/install-mysql-8.sh'));
}
return File::get(base_path('system/commands/ubuntu/install-mysql.sh'));
}
public function content(string $os): string
{
return $this->file($os);
}
}