Skip to content

Commit

Permalink
fix: fix copy
Browse files Browse the repository at this point in the history
  • Loading branch information
bangbang93 committed Nov 28, 2024
1 parent 45bdac6 commit d56cee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d56cee7

Please sign in to comment.