Browse Source

add isEvoacmeInstalled function

pull/63/head
Nicolas Roman 1 year ago
parent
commit
15faf3dfdc
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      lib/letsencrypt.php

+ 16
- 0
lib/letsencrypt.php 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;
}
}

Loading…
Cancel
Save