Просмотр исходного кода

use certbot for gatering informations

andre 8 месяцев назад
Родитель
Сommit
c424c076de
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);
-        $sslData = implode(" ",$phpOutput);
+        $sslData = explode(" ",$phpOutput[0]);
         /*
         $certFile = "/etc/letsencrypt/live/$domain/fullchain.pem";
         if (!file_exists($certFile)) {