From 2d08fe3547dbf3e003d09faef67cff736b6e2a90 Mon Sep 17 00:00:00 2001 From: Ben Schmidt Date: Fri, 25 Aug 2017 16:56:19 +1000 Subject: [PATCH] Fix renewal again. A similar fix to 69f5fc9c450a45620fdc9c1a91d4d656efea8a27, but using a public property exposed by an updated version of greenlock. --- index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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",