From a18b5cab5af587a42501c97d38cd9b4bbbdd189d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Itay=20Melo=20Kr=C3=A4mer?= Date: Thu, 5 Sep 2024 10:24:12 +0200 Subject: [PATCH] fixed logic problem --- src/generateNginxConfig.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generateNginxConfig.php b/src/generateNginxConfig.php index e3e5ddc..c01b05f 100644 --- a/src/generateNginxConfig.php +++ b/src/generateNginxConfig.php @@ -7,6 +7,7 @@ foreach ($certFiles as $cert) { if ($cert == '.' || $cert == '..') continue; if (pathinfo($cert, PATHINFO_EXTENSION) === 'crt') continue; + if ($cert === 'default.key') 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');