Skip to content

Commit 24c44b7

Browse files
author
Itay Melo Krämer
committed
changed logic
1 parent 924f664 commit 24c44b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generateNginxConfig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
echo PHP_EOL . "\033[32m" . "Certificates : " . "\033[0m" . PHP_EOL;
77
foreach ($certFiles as $cert) {
88
if ($cert == '.' || $cert == '..') continue;
9-
if (pathinfo($cert, PATHINFO_EXTENSION) === 'key') continue;
9+
if (pathinfo($cert, PATHINFO_EXTENSION) !== 'crt') continue;
1010
if ($cert === 'default.crt') continue;
1111
$domain = pathinfo($cert, PATHINFO_FILENAME);
1212
echo PHP_EOL . "\033[32m" . "- " . $domain . "\033[0m" . PHP_EOL;

0 commit comments

Comments
 (0)