From 4b47fb4eb679594a6f2978484f0b40788e7047b6 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sun, 3 Nov 2019 01:39:27 -0600 Subject: [PATCH] v3.0.5: update all given config values --- manager.js | 7 ++++++- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/manager.js b/manager.js index aba537d..49ef5c6 100644 --- a/manager.js +++ b/manager.js @@ -95,10 +95,15 @@ Manage.create = function(CONF) { if (newAlts.join() !== oldAlts.join()) { // this will cause immediate renewal args.renewAt = 1; - current.renewAt = 1; current.altnames = args.altnames.slice(0); } } + Object.keys(args).forEach(function(k) { + if ('altnames' === k) { + return; + } + current[k] = args[k]; + }); }; // no transaction promise here because it calls set diff --git a/package-lock.json b/package-lock.json index 3faa2ab..f5ca7b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "greenlock-manager-fs", - "version": "3.0.4", + "version": "3.0.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 70f557d..7b3b264 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "greenlock-manager-fs", - "version": "3.0.4", + "version": "3.0.5", "description": "A simple file-based management strategy for Greenlock", "main": "manager.js", "scripts": {