Compare commits

...

2 Commits

Author SHA1 Message Date
AJ ONeal 3f93292c9a
chore: add 'npm run bump' 2024-05-13 13:00:40 -06:00
AJ ONeal 4708eabe84
fix: skip (instead of fail) when pems.bundle is unavailable 2024-05-13 13:00:40 -06:00
2 changed files with 7 additions and 2 deletions

View File

@ -280,13 +280,17 @@ module.exports.create = function (configs) {
var bundleArchive = path.join(archiveDir, 'bundle' + checkpoints + '.pem');
return mkdirpAsync(archiveDir).then(function () {
return PromiseA.all([
var ps = PromiseA.all([
sfs.writeFileAsync(certArchive, pems.cert, 'ascii')
, sfs.writeFileAsync(chainArchive, pems.chain, 'ascii')
, sfs.writeFileAsync(fullchainArchive, [ pems.cert, pems.chain ].join('\n'), 'ascii')
, sfs.writeFileAsync(privkeyArchive, pems.privkey, 'ascii')
, sfs.writeFileAsync(bundleArchive, pems.bundle, 'ascii')
]);
if (pems.bundle) {
var bundleP = sfs.writeFileAsync(bundleArchive, pems.bundle, 'ascii');
ps.push(bundleP);
}
return ps;
}).then(function () {
return mkdirpAsync(liveDir);
}).then(function () {

View File

@ -4,6 +4,7 @@
"description": "The \"certbot\" storage strategy for Greenlock.js",
"main": "index.js",
"scripts": {
"bump": "npm version -m \"chore(release): bump to v%s\"",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {