From f53c526677861f4fc12118e16e6741347dfbfa69 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 29 Jun 2018 16:54:57 +0200 Subject: [PATCH] Remove superflous . for user cert key file location --- src/apps.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps.js b/src/apps.js index 2ecd101e1..467e68987 100644 --- a/src/apps.js +++ b/src/apps.js @@ -716,7 +716,7 @@ function configure(appId, data, auditSource, callback) { if (!safe.fs.writeFileSync(path.join(paths.APP_CERTS_DIR, `${fqdn}.user.key`), data.key)) return callback(new AppsError(AppsError.INTERNAL_ERROR, 'Error saving key: ' + safe.error.message)); } else { // remove existing cert/key if (!safe.fs.unlinkSync(path.join(paths.APP_CERTS_DIR, `${fqdn}.user.cert`))) debug('Error removing cert: ' + safe.error.message); - if (!safe.fs.unlinkSync(path.join(paths.APP_CERTS_DIR, `${fqdn}..user.key`))) debug('Error removing key: ' + safe.error.message); + if (!safe.fs.unlinkSync(path.join(paths.APP_CERTS_DIR, `${fqdn}.user.key`))) debug('Error removing key: ' + safe.error.message); } }