Skip to content

Commit 924f664

Browse files
author
Itay Melo Krämer
committed
fixed logic behind var name
1 parent a18b5ca commit 924f664

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generateNginxConfig.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
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) === 'crt') continue;
10-
if ($cert === 'default.key') continue;
9+
if (pathinfo($cert, PATHINFO_EXTENSION) === 'key') continue;
10+
if ($cert === 'default.crt') continue;
1111
$domain = pathinfo($cert, PATHINFO_FILENAME);
1212
echo PHP_EOL . "\033[32m" . "- " . $domain . "\033[0m" . PHP_EOL;
1313
$virtualHost = getenv('VIRTUAL_HOST') ?: throw new \Exception('env VIRTUAL_HOST is required');

0 commit comments

Comments
 (0)