Explorar el Código

use certbot for gatering informations

andre hace 8 meses
padre
commit
0e65d94ab2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      controllers/GetSSLDaysController.php

+ 1 - 1
controllers/GetSSLDaysController.php

@@ -11,7 +11,7 @@ class GetSSLDaysController {
             return;
         }
 
-        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'", $phpOutput, $phpReturnCode);
         $sslData = explode(" ",$phpOutput[0]);
         /*
         $certFile = "/etc/letsencrypt/live/$domain/fullchain.pem";