Updated errors
This commit is contained in:
parent
d7df7b765f
commit
832414ca49
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ class CertificatesV1
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!rename('/etc/letsencrypt/live/'.$domain->get(), APP_STORAGE_CERTIFICATES.'/'.$domain->get())) {
|
if(!rename('/etc/letsencrypt/live/'.$domain->get(), APP_STORAGE_CERTIFICATES.'/'.$domain->get())) {
|
||||||
throw new Exception('Failed to copy certificate: '.$staging.json_encode($response));
|
throw new Exception('Failed to copy certificate: '.json_encode($response));
|
||||||
}
|
}
|
||||||
|
|
||||||
$certificate = array_merge($certificate, [
|
$certificate = array_merge($certificate, [
|
||||||
|
@ -107,7 +107,7 @@ class CertificatesV1
|
||||||
'domain' => $domain->get(),
|
'domain' => $domain->get(),
|
||||||
'issueDate' => time(),
|
'issueDate' => time(),
|
||||||
'attempts' => 0,
|
'attempts' => 0,
|
||||||
'log' => $staging.json_encode($response),
|
'log' => json_encode($response),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$certificate = $consoleDB->createDocument($certificate);
|
$certificate = $consoleDB->createDocument($certificate);
|
||||||
|
|
Loading…
Reference in a new issue