update templates

This commit is contained in:
AJ ONeal 2019-11-05 03:18:48 -07:00
parent e3e7f18d4d
commit d47d03c980
1 changed files with 2 additions and 16 deletions

View File

@ -83,12 +83,6 @@ function writeGreenlockJs(pkgdir, flags) {
// continue
}
if (flags.cluster) {
tmpl = tmpl.replace(
/options.cluster = false/g,
'options.cluster = true'
);
}
if (flags.maintainerEmail) {
tmpl = tmpl.replace(
/pkg.author/g,
@ -117,17 +111,9 @@ function writeServerJs(pkgdir, flags) {
}
if (flags.cluster) {
tmpl = tmpl.replace(
/options.cluster = false/g,
'options.cluster = true'
);
}
if (flags.maintainerEmail) {
tmpl = tmpl.replace(
/pkg.author/g,
JSON.stringify(flags.maintainerEmail)
);
tmpl = tmpl.replace(/cluster: false/g, 'cluster: true');
}
fs.writeFileSync(path.join(pkgdir, serverJs), tmpl);
console.info("created '%s'", serverJs);
}