Skip to content

Commit 8f33ef4

Browse files
committed
fix(MongoBinaryDownloadUrl): add fedora version 34+ handling
thanks @dylanwulf on #304
1 parent a788634 commit 8f33ef4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,17 @@ export class MongoBinaryDownloadUrl implements MongoBinaryDownloadUrlOpts {
233233
let name = 'rhel';
234234
const fedoraVer: number = parseInt(os.release, 10);
235235

236-
if (fedoraVer > 18) {
236+
// 34 onward dosnt have "compat-openssl10" anymore, and only build from 4.0.24 are available for "rhel80"
237+
if (fedoraVer >= 34) {
238+
name += '80';
239+
}
240+
if (fedoraVer < 34 && fedoraVer >= 19) {
237241
name += '70';
238-
} else if (fedoraVer < 19 && fedoraVer >= 12) {
242+
}
243+
if (fedoraVer < 19 && fedoraVer >= 12) {
239244
name += '62';
240-
} else if (fedoraVer < 12 && fedoraVer >= 6) {
245+
}
246+
if (fedoraVer < 12 && fedoraVer >= 6) {
241247
name += '55';
242248
}
243249

0 commit comments

Comments
 (0)