From d56cee7aa46c465120ea25998fc8de7e436789cb Mon Sep 17 00:00:00 2001 From: bangbang93 Date: Thu, 28 Nov 2024 18:40:23 +0800 Subject: [PATCH] fix: fix copy --- src/cluster.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cluster.ts b/src/cluster.ts index 192300a..119834e 100644 --- a/src/cluster.ts +++ b/src/cluster.ts @@ -525,12 +525,12 @@ export class Cluster { } if (await fse.pathExists(config.sslCert)) { - await fse.copyFile(config.sslCert, join(this.tmpDir, 'cert.pem')) + await fse.copy(config.sslCert, join(this.tmpDir, 'cert.pem')) } else { await fse.outputFile(join(this.tmpDir, 'cert.pem'), config.sslCert) } if (await fse.pathExists(config.sslKey)) { - await fse.copyFile(config.sslKey, join(this.tmpDir, 'key.pem')) + await fse.copy(config.sslKey, join(this.tmpDir, 'key.pem')) } else { await fse.outputFile(join(this.tmpDir, 'key.pem'), config.sslKey) }