Преглед изворни кода

use certbot for gatering informations

andre пре 8 месеци
родитељ
комит
53f2601c2e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      controllers/GetSSLDaysController.php

+ 1 - 1
controllers/GetSSLDaysController.php

@@ -12,7 +12,7 @@ class GetSSLDaysController {
         }
         }
 
 
         exec("sudo certbot certificates --cert-name $domain | grep 'Expiry' | grep 'Expiry' | sed 's/  //g'", $phpOutput, $phpReturnCode);
         exec("sudo certbot certificates --cert-name $domain | grep 'Expiry' | grep 'Expiry' | sed 's/  //g'", $phpOutput, $phpReturnCode);
-        $sslData = implode("\n",$phpOutput);
+        $sslData = implode(" ",$phpOutput);
         /*
         /*
         $certFile = "/etc/letsencrypt/live/$domain/fullchain.pem";
         $certFile = "/etc/letsencrypt/live/$domain/fullchain.pem";
         if (!file_exists($certFile)) {
         if (!file_exists($certFile)) {