We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e09c704 commit 232c33fCopy full SHA for 232c33f
packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts
@@ -1,4 +1,5 @@
1
import getos from 'getos';
2
+import { execSync } from 'child_process';
3
4
export interface MongoBinaryDownloadUrlOpts {
5
version: string;
@@ -156,7 +157,8 @@ export default class MongoBinaryDownloadUrl {
156
157
158
// eslint-disable-next-line @typescript-eslint/no-unused-vars
159
getElementaryOSVersionString(os: getos.Os): string {
- return 'ubuntu1404';
160
+ const ubuntuVersion = execSync('/usr/bin/lsb_release -u -rs');
161
+ return `ubuntu${ubuntuVersion.toString().replace('.', '')}`;
162
}
163
164
0 commit comments