From 924f664a0f96dd3ef1dd568d3db2d5bb27b0f3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Itay=20Melo=20Kr=C3=A4mer?= Date: Thu, 5 Sep 2024 10:49:30 +0200 Subject: [PATCH] fixed logic behind var name --- src/generateNginxConfig.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/generateNginxConfig.php b/src/generateNginxConfig.php index c01b05f..06dc515 100644 --- a/src/generateNginxConfig.php +++ b/src/generateNginxConfig.php @@ -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');