update vhost and bug fix (#87)

This commit is contained in:
Saeed Vaziry
2024-01-05 22:07:45 +01:00
committed by GitHub
parent f120a570e8
commit f06b8f7d20
9 changed files with 140 additions and 4 deletions

View File

@ -0,0 +1,26 @@
<?php
namespace App\SSHCommands\Nginx;
use App\SSHCommands\Command;
use Illuminate\Support\Facades\File;
class GetNginxVHostCommand extends Command
{
public function __construct(
protected string $domain
) {
}
public function file(): string
{
return File::get(resource_path('commands/webserver/nginx/get-vhost.sh'));
}
public function content(): string
{
return str($this->file())
->replace('__domain__', $this->domain)
->toString();
}
}