@root/greenlock
Advanced tools
Comparing version 3.1.1 to 3.1.3
@@ -19,2 +19,3 @@ 'use strict'; | ||
[ | ||
'agree-to-terms', | ||
'account-key-type', | ||
@@ -33,3 +34,3 @@ 'server-key-type', | ||
'challenge-xxxx', | ||
'challenge-http-01', | ||
'challenge-http-01' | ||
].forEach(function(k) { | ||
@@ -36,0 +37,0 @@ myFlags[k] = flagOptions[k]; |
@@ -86,8 +86,2 @@ 'use strict'; | ||
if (flags.cluster) { | ||
tmpl = tmpl.replace( | ||
/options.cluster = false/g, | ||
'options.cluster = true' | ||
); | ||
} | ||
if (flags.maintainerEmail) { | ||
@@ -121,13 +115,5 @@ tmpl = tmpl.replace( | ||
if (flags.cluster) { | ||
tmpl = tmpl.replace( | ||
/options.cluster = false/g, | ||
'options.cluster = true' | ||
); | ||
tmpl = tmpl.replace(/cluster: false/g, 'cluster: true'); | ||
} | ||
if (flags.maintainerEmail) { | ||
tmpl = tmpl.replace( | ||
/pkg.author/g, | ||
JSON.stringify(flags.maintainerEmail) | ||
); | ||
} | ||
fs.writeFileSync(path.join(pkgdir, serverJs), tmpl); | ||
@@ -134,0 +120,0 @@ console.info("created '%s'", serverJs); |
@@ -29,2 +29,7 @@ 'use strict'; | ||
], | ||
'agree-to-terms': [ | ||
false, | ||
"agree to the Let's Encrypts Subscriber Agreement and Greenlock Terms of Use", | ||
'boolean' | ||
], | ||
subject: [ | ||
@@ -31,0 +36,0 @@ false, |
@@ -298,3 +298,3 @@ 'use strict'; | ||
if (!sites || !sites.length) { | ||
return null; | ||
return []; | ||
} | ||
@@ -301,0 +301,0 @@ sites = JSON.parse(JSON.stringify(sites)); |
{ | ||
"name": "@root/greenlock", | ||
"version": "3.1.1", | ||
"version": "3.1.3", | ||
"description": "The easiest Let's Encrypt client for Node.js and Browsers", | ||
@@ -5,0 +5,0 @@ "homepage": "https://rootprojects.org/greenlock/", |
171374
4008