Skip to content

Commit 837d98e

Browse files
sventschuinodkz
authored andcommitted
fix: compatibility with debian 10 (works for Mongo >= v4.2.1)
Debian 10 uses libcurl v4, thus needs a different mongodb build
1 parent b35362b commit 837d98e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ export default class MongoBinaryDownloadUrl {
129129
getDebianVersionString(os: getos.Os): string {
130130
let name = 'debian';
131131
const release: number = parseFloat((os as getos.LinuxOs).release);
132-
if (release >= 9 || (os as getos.LinuxOs).release === 'unstable') {
132+
if (release >= 10 || (os as getos.LinuxOs).release === 'unstable') {
133+
name += '10';
134+
} else if (release >= 9) {
133135
name += '92';
134136
} else if (release >= 8.1) {
135137
name += '81';

0 commit comments

Comments
 (0)