From 624983950efb4d8ab17ec5ee83f6a03f0ddc3c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn?= Date: Mon, 21 Sep 2020 20:42:55 +0200 Subject: [PATCH] adding #45 --- app/Factories/NginxVhostFactory.php | 4 +--- app/Helpers/NginxVhostHelper.php | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Factories/NginxVhostFactory.php b/app/Factories/NginxVhostFactory.php index 2796444..eed07cc 100644 --- a/app/Factories/NginxVhostFactory.php +++ b/app/Factories/NginxVhostFactory.php @@ -137,9 +137,7 @@ class NginxVhostFactory ->addLineBreak('-'); if ($vhost['ssl'] === true) { - - var_dump($vhost); die(); - + if ($vhost['ssl_certificate_exists']) { $builder->addStaticItem('expired_at: '.$vhost['ssl_certificate_expired_at']); } else { diff --git a/app/Helpers/NginxVhostHelper.php b/app/Helpers/NginxVhostHelper.php index c2b934d..0662a02 100644 --- a/app/Helpers/NginxVhostHelper.php +++ b/app/Helpers/NginxVhostHelper.php @@ -83,6 +83,8 @@ class NginxVhostHelper if (count($matches) >= 2) { $result['ssl'] = true; + var_dump($matches); die(); + if (file_exists($matches[0]) && file_exists($matches[1])) { $result['ssl_certificate_exists'] = true; }