Fix renewal again.
A similar fix to 69f5fc9c45
, but using a
public property exposed by an updated version of greenlock.
This commit is contained in:
parent
f10b402f24
commit
2d08fe3547
4
index.js
4
index.js
|
@ -106,7 +106,7 @@ module.exports.run = function (args) {
|
|||
, rsaKeySize: args.rsaKeySize
|
||||
, challengeType: challengeType
|
||||
}).then(function (certs) {
|
||||
if (!certs._renewing) {
|
||||
if (!certs.renewing) {
|
||||
return certs;
|
||||
}
|
||||
console.log("");
|
||||
|
@ -115,7 +115,7 @@ module.exports.run = function (args) {
|
|||
console.log("\tValid until " + new Date(certs.expiresAt).toISOString() + "");
|
||||
console.log("");
|
||||
console.log("Renewing them now");
|
||||
return certs._renewing;
|
||||
return certs.renewing;
|
||||
}).then(function (certs) {
|
||||
console.log("");
|
||||
console.log("Got certificate(s) for " + certs.altnames.join(', '));
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
"homepage": "https://git.daplie.com/Daplie/greenlock-cli",
|
||||
"dependencies": {
|
||||
"cli": "^0.11.1",
|
||||
"greenlock": "^2.1.9",
|
||||
"greenlock": "^2.1.16",
|
||||
"homedir": "^0.6.0",
|
||||
"le-acme-core": "^2.0.5",
|
||||
"le-challenge-hooks": "^2.0.0",
|
||||
|
|
Loading…
Reference in New Issue