updated certificate path

This commit is contained in:
Rahul Somasundaram 2021-09-01 07:38:11 +05:30
parent f302ff71c9
commit 658acd147c
No known key found for this signature in database
GPG Key ID: B8520CB207DD49D3

View File

@ -350,7 +350,7 @@ const internalCertificate = {
})
.then((certificate) => {
if (certificate.provider === 'letsencrypt') {
const zipDirectory = '/etc/letsencrypt/live/npm-' + data.id;
const zipDirectory = '/etc/letsencrypt/archive/npm-' + data.id;
if (!fs.existsSync(zipDirectory)) {
throw new error.ItemNotFoundError('Certificate ' + certificate.nice_name + ' does not exists');