letsencrypt.inc.php (ISPConfig-3.2.6) | : | letsencrypt.inc.php (ISPConfig-3.2.7) | ||
---|---|---|---|---|
skipping to change at line 47 | skipping to change at line 47 | |||
*/ | */ | |||
private $base_path = '/etc/letsencrypt'; | private $base_path = '/etc/letsencrypt'; | |||
private $renew_config_path = '/etc/letsencrypt/renewal'; | private $renew_config_path = '/etc/letsencrypt/renewal'; | |||
private $certbot_use_certcommand = false; | private $certbot_use_certcommand = false; | |||
public function __construct(){ | public function __construct(){ | |||
} | } | |||
public function get_acme_script() { | public function get_acme_script() { | |||
$acme = explode("\n", shell_exec('which /usr/local/ispconfig/serv er/scripts/acme.sh /root/.acme.sh/acme.sh')); | $acme = explode("\n", shell_exec('which acme.sh /usr/local/ispcon fig/server/scripts/acme.sh /root/.acme.sh/acme.sh')); | |||
$acme = reset($acme); | $acme = reset($acme); | |||
if(is_executable($acme)) { | if(is_executable($acme)) { | |||
return $acme; | return $acme; | |||
} else { | } else { | |||
return false; | return false; | |||
} | } | |||
} | } | |||
public function get_acme_command($domains, $key_file, $bundle_file, $cert _file, $server_type = 'apache') { | public function get_acme_command($domains, $key_file, $bundle_file, $cert _file, $server_type = 'apache') { | |||
global $app, $conf; | global $app, $conf; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |