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
|
, rsaKeySize: args.rsaKeySize
|
||||||
, challengeType: challengeType
|
, challengeType: challengeType
|
||||||
}).then(function (certs) {
|
}).then(function (certs) {
|
||||||
if (!certs._renewing) {
|
if (!certs.renewing) {
|
||||||
return certs;
|
return certs;
|
||||||
}
|
}
|
||||||
console.log("");
|
console.log("");
|
||||||
|
@ -115,7 +115,7 @@ module.exports.run = function (args) {
|
||||||
console.log("\tValid until " + new Date(certs.expiresAt).toISOString() + "");
|
console.log("\tValid until " + new Date(certs.expiresAt).toISOString() + "");
|
||||||
console.log("");
|
console.log("");
|
||||||
console.log("Renewing them now");
|
console.log("Renewing them now");
|
||||||
return certs._renewing;
|
return certs.renewing;
|
||||||
}).then(function (certs) {
|
}).then(function (certs) {
|
||||||
console.log("");
|
console.log("");
|
||||||
console.log("Got certificate(s) for " + certs.altnames.join(', '));
|
console.log("Got certificate(s) for " + certs.altnames.join(', '));
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
"homepage": "https://git.daplie.com/Daplie/greenlock-cli",
|
"homepage": "https://git.daplie.com/Daplie/greenlock-cli",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cli": "^0.11.1",
|
"cli": "^0.11.1",
|
||||||
"greenlock": "^2.1.9",
|
"greenlock": "^2.1.16",
|
||||||
"homedir": "^0.6.0",
|
"homedir": "^0.6.0",
|
||||||
"le-acme-core": "^2.0.5",
|
"le-acme-core": "^2.0.5",
|
||||||
"le-challenge-hooks": "^2.0.0",
|
"le-challenge-hooks": "^2.0.0",
|
||||||
|
|
Loading…
Reference in New Issue