Browse Source

adding #45

master
Björn 4 years ago
parent
commit
624983950e
2 changed files with 3 additions and 3 deletions
  1. +1
    -3
      app/Factories/NginxVhostFactory.php
  2. +2
    -0
      app/Helpers/NginxVhostHelper.php

+ 1
- 3
app/Factories/NginxVhostFactory.php View File

@ -137,9 +137,7 @@ class NginxVhostFactory
->addLineBreak('-'); ->addLineBreak('-');
if ($vhost['ssl'] === true) { if ($vhost['ssl'] === true) {
var_dump($vhost); die();
if ($vhost['ssl_certificate_exists']) { if ($vhost['ssl_certificate_exists']) {
$builder->addStaticItem('expired_at: '.$vhost['ssl_certificate_expired_at']); $builder->addStaticItem('expired_at: '.$vhost['ssl_certificate_expired_at']);
} else { } else {


+ 2
- 0
app/Helpers/NginxVhostHelper.php View File

@ -83,6 +83,8 @@ class NginxVhostHelper
if (count($matches) >= 2) { if (count($matches) >= 2) {
$result['ssl'] = true; $result['ssl'] = true;
var_dump($matches); die();
if (file_exists($matches[0]) && file_exists($matches[1])) { if (file_exists($matches[0]) && file_exists($matches[1])) {
$result['ssl_certificate_exists'] = true; $result['ssl_certificate_exists'] = true;
} }


Loading…
Cancel
Save