瀏覽代碼

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);
-        $sslData = implode("\n",$phpOutput);
+        $sslData = implode(" ",$phpOutput);
         /*
         $certFile = "/etc/letsencrypt/live/$domain/fullchain.pem";
         if (!file_exists($certFile)) {