diff --git a/index.js b/index.js index 408bc87..95c5c57 100644 --- a/index.js +++ b/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(', ')); diff --git a/package.json b/package.json index 0585a0b..fcafed8 100644 --- a/package.json +++ b/package.json @@ -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",