vito/app/SSHCommands/InstallMysqlCommand.php
Saeed Vaziry 5c72f12490 init
2023-07-02 12:47:50 +02:00

30 lines
601 B
PHP
Executable File

<?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);
}
}