add isEvoacmeInstalled function

This commit is contained in:
Nicolas Roman 2019-06-07 15:24:38 +02:00
parent f6cfe14cdc
commit 15faf3dfdc
1 changed files with 16 additions and 0 deletions

View File

@ -104,4 +104,20 @@ class LetsEncrypt
return $valid_dns_domains;
}
/**
* check the presence of make-csr and evoacme binaries
* @return boolean
*/
public function isEvoacmeInstalled()
{
$output_make_csr = shell_exec("which make-csr");
$output_evoacme = shell_exec("which evoacme");
if (empty($output_make_csr) || empty($output_evoacme)) {
return false;
}
return true;
}
}