Commit 0d99f516 authored by Marius Burkard's avatar Marius Burkard

- fixed LE command not being called

parent c13ab0ef
......@@ -63,6 +63,10 @@ class letsencrypt {
$cmd .= (string) " -d " . $domain;
}
if($cmd == '') {
return false;
}
$cmd = $letsencrypt . " --issue $cmd -w /usr/local/ispconfig/interface/acme && " . $letsencrypt . " --install-cert " . $cmd . " --key-file " . escapeshellarg($key_file) . " --fullchain-file " . escapeshellarg($bundle_file) . " --cert-file " . escapeshellarg($cert_file) . " --reloadcmd " . escapeshellarg($this->get_reload_command());
return $cmd;
......@@ -121,6 +125,10 @@ class letsencrypt {
$cmd .= (string) " --domains " . $domain;
}
if($cmd == '') {
return false;
}
$matches = array();
$ret = null;
$val = 0;
......@@ -375,7 +383,7 @@ class letsencrypt {
}
$success = false;
if(!empty($cli_domain_arg)) {
if(!$letsencrypt_cmd) {
if(!isset($server_config['migration_mode']) || $server_config['migration_mode'] != 'y') {
$app->log("Create Let's Encrypt SSL Cert for: $domain", LOGLEVEL_DEBUG);
$app->log("Let's Encrypt SSL Cert domains: $cli_domain_arg", LOGLEVEL_DEBUG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment