fix custom vhost update (#164)

This commit is contained in:
Saeed Vaziry
2024-04-13 23:47:52 +02:00
committed by GitHub
parent f03a029e36
commit aaef73d89d
2 changed files with 9 additions and 3 deletions

View File

@ -70,7 +70,7 @@ public function updateVHost(Site $site, bool $noSSL = false, ?string $vhost = nu
$this->getScript('nginx/update-vhost.sh', [
'domain' => $site->domain,
'path' => $site->path,
'vhost' => $this->generateVhost($site, $noSSL),
'vhost' => $vhost ?? $this->generateVhost($site, $noSSL),
]),
'update-vhost',
$site->id