Skip to content

Commit

Permalink
fixed logic behind var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Itay Melo Krämer committed Sep 5, 2024
1 parent a18b5ca commit 924f664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generateNginxConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
echo PHP_EOL . "\033[32m" . "Certificates : " . "\033[0m" . PHP_EOL;
foreach ($certFiles as $cert) {
if ($cert == '.' || $cert == '..') continue;
if (pathinfo($cert, PATHINFO_EXTENSION) === 'crt') continue;
if ($cert === 'default.key') continue;
if (pathinfo($cert, PATHINFO_EXTENSION) === 'key') continue;
if ($cert === 'default.crt') continue;
$domain = pathinfo($cert, PATHINFO_FILENAME);
echo PHP_EOL . "\033[32m" . "- " . $domain . "\033[0m" . PHP_EOL;
$virtualHost = getenv('VIRTUAL_HOST') ?: throw new \Exception('env VIRTUAL_HOST is required');
Expand Down

0 comments on commit 924f664

Please sign in to comment.